I'm using Git in a team of three to build an iOS app. For this project we are all Mac and Xcode based and have a variety of different ways of using Git: within Xcode, using Github Desktop, and from the Bash terminal.
I am confused about the history I am seeing in GitHub desktop - it is linear and appears to be all from one developer.
I can use the terminal command git log --since='2016-05-06' --pretty=format:"%h %an %cd" --graph
to see the last few days' commits:
I can clearly see that the last twelve commits are spread between all three contributors. But it does not look like this in GitDesktop:
Here all the recent commits seem to be from one developer, and all laid out linearly without the branching structure shown by the --graph
option to git log
.
Why is GitHub desktop presenting the history as one developer? Where is the branching structure gone? How do I get GitHub Desktop to show me the history that git log
is able to?
I heard back from the GitHub team.
The terminal command that is a better comparison is
git log --since='2016-05-06' --pretty=format:"%h %an %cd" --graph --first-parent
. Looking at thegit log
documentation the--first-parent
option is described as:In their reply GitHub share what one of their developers said about the GitHub Desktop Comparison Graph
But the goal is that "in the future [they] would like to make all commits reachable in GitHub Desktop"