Codumentary: Tech Tips and Tricks
Monday, December 29, 2014
Git Tip of the Year: Find the Most Recent Common Commit
Okay, you're working on a branch called 'awesome' and you want to know what's the most recent common commit of branch 'awesome' and 'master'.
Just run this:
$ git merge-base awesome master d931216adebf441dc7431f1a073baed8b4a1b20a
And you'll get the SHA1 of the most recent common commit.
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment