mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Add git-obliterate for removing file from history.
This commit is contained in:
parent
2dc7ff9793
commit
df853d1c5b
3
bin/git-obliterate
Normal file
3
bin/git-obliterate
Normal 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
|
||||
Loading…
Reference in a new issue