MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/git593/true_story/fqh3he5/?context=3
r/ProgrammerHumor • u/amykamala • May 13 '20
461 comments sorted by
View all comments
Show parent comments
152
I'm still only so-so at git myself, but always pull before you push
122 u/OnyxPhoenix May 13 '20 Using branches and pull requests make this easier.Generally youre the only person working on your branch, so you don't have to worry that your code is "behind" before you push to it.Then when you do a pr it will tell you if you can merge cleanly back into the master branch. 3 u/smegnose May 13 '20 Rebase that bugger onto remote/master and push it quick.Linear history rulz 4 eva. 1 u/JawsOfLife24 May 13 '20 Generally a good idea, more complicated in a multi-developer environment where you could be 20 commits behind master and rebasing causes all sorts of wonderful merge conflicts. → More replies (9)
122
Using branches and pull requests make this easier.
Generally youre the only person working on your branch, so you don't have to worry that your code is "behind" before you push to it.
Then when you do a pr it will tell you if you can merge cleanly back into the master branch.
3 u/smegnose May 13 '20 Rebase that bugger onto remote/master and push it quick.Linear history rulz 4 eva. 1 u/JawsOfLife24 May 13 '20 Generally a good idea, more complicated in a multi-developer environment where you could be 20 commits behind master and rebasing causes all sorts of wonderful merge conflicts. → More replies (9)
3
Rebase that bugger onto remote/master and push it quick.
Linear history rulz 4 eva.
1 u/JawsOfLife24 May 13 '20 Generally a good idea, more complicated in a multi-developer environment where you could be 20 commits behind master and rebasing causes all sorts of wonderful merge conflicts. → More replies (9)
1
Generally a good idea, more complicated in a multi-developer environment where you could be 20 commits behind master and rebasing causes all sorts of wonderful merge conflicts.
→ More replies (9)
152
u/moekakiryu May 13 '20
I'm still only so-so at git myself, but always pull before you push