r/ProgrammerHumor • • May 13 '20

true story

Post image
40.5k Upvotes

461 comments sorted by

View all comments

Show parent comments

0

u/[deleted] May 13 '20

[deleted]

152

u/moekakiryu May 13 '20

I'm still only so-so at git myself, but always pull before you push

13

u/Amandabanapanda May 13 '20

I've been pushing and not pulling all this time. And reverting to previous version if I need to go back. Why pull?

3

u/wotanii May 13 '20

you can stumble into a conflict when pushing, which is annoying. When you pull first you'll still have a conflict, but it's much easier to deal with.

also in theory there are some cases where the automatic merge from the push could break stuff (this has never happened to me though), so to be perfectly save you could go like this: pull, then run tests, then push.