Guest User

Untitled

a guest
Dec 15th, 2017
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. git log --numstat <first commit hash> HEAD
  2.  
  3. $ git rev-list HEAD
  4. 32a9b9158d73dc80b355993a5a5f8fc49ae25334
  5. 9946574838bf5f984f5f4a19b2fc524f0a60378c
  6. 3f82a5dcecde0028da21fb266c1bbd7e9ec762ec
  7. ...
  8.  
  9. $ git ls-tree -r 32a9b9158d73dc80b355993a5a5f8fc49ae25334
  10. 100644 blob dcf290b1a99a8d2535b8aa8f85702cd1b7fac6e8 .gitignore
  11. 100644 blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 README
  12.  
  13. git show:
  14. $ git show dcf290b1a99a8d2535b8aa8f85702cd1b7fac6e8
  15. .gitignore
  16.  
  17. *.pyc
  18. rm_pyc.sh
  19. aima/**/*.pyc
  20. .idea
  21.  
  22. git show dcf290b1a99a8d2535b8aa8f85702cd1b7fac6e8 > file
  23. /bin/file file
  24. file: ASCII text
  25.  
  26. git log --all --numstat
  27. | grep '^-'
  28. | cut -f3
  29. | sed -r 's|(.*){(.*) => (.*)}(.*)|124n134|g'
  30. | sort -u
  31.  
  32. commit 0123456789012345678901234567890123456789
  33. Author: Joe Example <jexample@domain.com>
  34. Date: Thu Mar 9 15:33:29 2017 +0000
  35.  
  36. edit Dockerfile, add assets/foobar.jpg
  37.  
  38. 1 1 Dockerfile
  39. - - assets/foobar.jpg
  40.  
  41. sed -r 's|(.*){(.*) => (.*)}(.*)|124n134|g'
  42.  
  43. path/to/{foo => bar}/my-document.pdf
  44.  
  45. path/to/foo/my-document.pdf
  46. path/to/bar/my-document.pdf
Add Comment
Please, Sign In to add comment