Advertisement
Guest User

GIT_FHRITP

a guest
Jul 30th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. git filter-branch --index-filter '
  4.  
  5. fhritp=PracticaMaD/trunk/
  6. if [ -n "`git ls-files -s | grep $fhritp`" ]
  7. then
  8. git ls-files -s | sed "s-\t$fhritp\"*-\t-" |
  9. GIT_INDEX_FILE=$GIT_INDEX_FILE.new \
  10. git update-index --index-info &&
  11. mv "$GIT_INDEX_FILE.new" "$GIT_INDEX_FILE"
  12. fi
  13.  
  14. ' HEAD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement