-
Notifications
You must be signed in to change notification settings - Fork 24
How to work with git
PLEASE,
read this: http://randyfay.com/content/avoiding-git-disasters-gory-story - especially "Disaster 2: Merging Without Understanding"
"Automatic" merge commits form one branch to the SAME branch (usually happenning when doing git pull with some stuff already commited locally). Please read carefully what git tells you and DO NOT push back when you see something like "merge made by the recursive strategy". This commits make the commit history quite unreadable - as they merge together your and someone's work together.
http://cl.ly/image/2G2S000J2q2f - left screen creates new commit and pushes it, while right one makes new commit too and tries to push it as well. However git denies it and tells you to run pull. So you do it and viola - BAD mergecommit is there. http://cl.ly/image/2N3R3n053L1C
EASIEST SOLUTION just run git pull origin --rebase instead of just git pull origin.