Last active
November 24, 2017 13:07
-
-
Save sascha-andres/dfaa17fde9db89bd38fa89a654552df1 to your computer and use it in GitHub Desktop.
GIT LFS conversion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.mp4 filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git -c gc.reflogExpireUnreachable=0 -c gc.pruneExpire=now gc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://confluence.atlassian.com/bitbucket/use-bfg-to-migrate-a-repo-to-git-lfs-834233484.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for ref in `git show-ref | cut -d' ' -f2`; do | |
git lfs migrate import --include="*.jpg" --include-ref=$ref; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment