The Coding Slim Jim
Ahh.. who gave the code-monkey a wrench?
Wednesday, September 25, 2013
Git show the version prior to the commit hash
getting the verion prior to the current hash point in git is yet another one of the annoying little bits of pointless info that makes people hate unix tools...
The secret is the "~1" which means prior to the commit hash number you gave. EG
git show commithash~1:path/to/file
Share to Twitter
Share to Facebook
Share to Pinterest
Post a Comment
Post Comments (Atom)