![]() ![]() The script that GNU parallel is calling: ~/bin/gax looks like this: #!/bin/bash size 5M -type f -not -ipath \*.git\* -not -ipath \*.temp\* -print0 | parallel -0 -j1 ~/bin/gax git reset HEAD. git filter-branch -tag-name-filter cat -tree-filter 'mkdir -p. gitattributes and therefore did not need to do a bunch of rebases on the front end. ![]() My experience was less complicated, I did not need to edit. This has been touched on some at the git-annex page: size 5M -type f -not -ipath \*.git/\* -print0 | xargs -0 git annex addįind all files larger than 5MB in the repo and add them to the annex git directory) and remove them from the index.įind. size 5M -type f -not -ipath \*.git/\* -print0 | xargs -0 git rm -cached įor each commit, find all files larger than 5MB in the repo (minus the. Rewrite trees for all commits reachable from HEAD.įind. Step by step, what that hopefully does is: size 5M -type f -not -ipath \*.git/\* -print0 | xargs -0 git annex add' HEAD size 5M -type f -not -ipath \*.git/\* -print0 | xargs -0 git rm -cached find. I haven't tested this myself since I don't have git-annex installed, so you should clone your repo and test it there first! git filter-branch -tree-filter 'find. That command would probably look something like the following. ![]() You might be able to use git-filter-branch to rewrite your commits to remove the big files and annex them, as if they had been there all along. This is because your history still contains all the big files checked into Git. If you just remove the files from the most recent commit and start using git-annex now, it will work, but your existing git repository will not get any smaller. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |