Guest User

Untitled

a guest
Jan 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. git filter-branch -f --prune-empty --tree-filter '
  2. if [ -f .gitattributes ]; then
  3. git rm -f .gitattributes
  4. fi
  5. find * -type f | while read FILE; do
  6. while head -2 "$FILE" | grep -q "^oid sha256"; do
  7. ref=$(cat "$FILE")
  8. echo -n "$ref" | git lfs smudge > "$FILE"
  9. git add "$FILE"
  10. done
  11. done' --tag-name-filter cat -- --all
Add Comment
Please, Sign In to add comment