I have a small problem using github.
I mainly try to work with branches, and merge code back in the master as soon as I have something working.
Thing is, all my branches in the network view in github show up on the same line, which makes it completely useless.
https://github.com/jlengrand/FaceMovie/network
Can you explain me the reason for that?
When creating a branch locally, It does not show up automatically in github.
When I perform a
git push -u origin master
It shoes up, but on the same line as the master.
What confuses me is that on my other projects, I don’t have this problem, without really knowing what I did differently.
https://github.com/jlengrand/FaceMovie/network
Any help would be really appreciated !
Thanks
If you merge a branch back to master with no commits hapening on master since you created the branch, it doesn’t create a merge commit (i.e. a commit with two parents), but rather it fast-forwards the master branch to the other.
To prevent this, use
--no-ffoption when merging. This will force the merge commit.