Tech Tips
Tuesday, September 29, 2009
Git - Beginner
* Reverting a previous commit (not pushed on server).
1. git log
-- shows last 5/6commits with the commit id (which is needed to revert a given commit).
or - gitk, select your commit and look at "SHA1 ID".
2. git revert -n sha1 id
* To see history of a given file.
gitk filePath
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment