Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- git filter-branch --index-filter '
- fhritp=PracticaMaD/trunk/
- if [ -n "`git ls-files -s | grep $fhritp`" ]
- then
- git ls-files -s | sed "s-\t$fhritp\"*-\t-" |
- GIT_INDEX_FILE=$GIT_INDEX_FILE.new \
- git update-index --index-info &&
- mv "$GIT_INDEX_FILE.new" "$GIT_INDEX_FILE"
- fi
- ' HEAD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement