Bro tip: gitk --first-parent

Stephen Kelly steveire at gmail.com
Sun Sep 4 22:00:17 BST 2011


Hi,

If you use gitk and are working in a git repo with lots of merges between 
branches, it can be overwhelming to see all the commits in branches which 
have been merged in (eg, the commits in the 4.7 and active branches when 
trying to look at the frameworks branch).

The way to see commits that were actually made on the frameworks branch, and 
not commits that were merged in, is to use gitk --first-parent. It is 
documented in the git-log man page, because gitk accepts most standard git 
commands for dealing with refs.


If you don't use gitk and don't understand git see:

http://lostechies.com/joshuaflanagan/2010/09/03/use-gitk-to-understand-git/







More information about the kde-core-devel mailing list