Add git-obliterate for removing file from history.

This commit is contained in:
Brian J Brennan 2012-07-14 14:04:26 -04:00
parent 2dc7ff9793
commit df853d1c5b

3
bin/git-obliterate Normal file
View file

@ -0,0 +1,3 @@
file=$1
test -z $file && echo "file required." 1>&2 && exit 1
git filter-branch -f --index-filter "git rm --cached $file --ignore-unmatch" --prune-empty --tag-name-filter cat -- --all