Friday, June 1, 2012

Some useful commands in Git

1) If You are interested in merging in the branch and want to see what commits are going to effect when we do that merge.

You can do this by putting a ^ in front of the branch that you don't want to see. 

$ git log --oneline branchname ^master

or

$ git log --oneline master ^branchname

2) To show stats for each commit
 
$ git log --stat

It lists which files were modified, how many lines added or deleted  

No comments: