diff --git a/020_git-lfs.sh b/020_git-lfs.sh index fe1493c..7c85703 100644 --- a/020_git-lfs.sh +++ b/020_git-lfs.sh @@ -62,3 +62,15 @@ echo " git add .lfsconfig" echo "For servers see:" echo " https://docs.gitlab.com/ce/workflow/lfs/manage_large_binaries_with_git_lfs.html" echo " https://about.gitlab.com/2017/01/30/getting-started-with-git-lfs-tutorial/" +echo "Migration:" +echo "Rewrite e.g. all *.mp4 video files on the current branch that are not present on a remote:" +echo ' git lfs migrate import --include="*.tar.xz"' +echo "rewrite all *.mp4 video files on a given branch(es) regardless of whether they are present on a remote (may require a force-push):" +echo " "git lfs migrate import --include="*.mp4" --include-ref=refs/heads/master --include-ref=refs/heads/my-feature" +echo "Fast checkout procedure:" +echo "Checkout without tracked file downloads" +echo " GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/username/my_lfs_repo.git destination_dir" +echo " #git lfs ls-files # optionally see all the - showing the lfs files are not checked out" +echo "Pull to download the track files:." +echo " git lfs pull" +echo " #git lfs ls-files # optionally see all the * showing the lfs files are checked out"