Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Save file as git-mvs in your path and then:
  2.  
  3. ```sh
  4. git mvs "s/foo/bar/g"
  5. ```
  6.  
  7. When run against a git tree like this:
  8.  
  9. /
  10. ├ /foodir
  11. │ ├ /foofile
  12. │ └ /otherfile
  13. └ /otherdir
  14.   ├ /foofile
  15.   └ /otherfile
  16.  
  17. then the result is:
  18.  
  19. /
  20. ├ /bardir
  21. │ ├ /barfile
  22. │ └ /otherfile
  23. └ /otherdir
  24.   ├ /barfile
  25.   └ /otherfile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement