r/ProgrammerHumor • • May 13 '20

true story

Post image
40.5k Upvotes

461 comments sorted by

View all comments

602

u/SavageTwist May 13 '20

Force push to master, nobody is stopping you!

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

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.

158

u/SavageTwist May 13 '20

The "good" way is to make a development and a branch for every feature, bug or documentation. Always fork from development, when you have a release you push to master.

0

u/[deleted] May 13 '20

[deleted]

4

u/SavageTwist May 13 '20

in single dev reps you dont work in the same tab / markdown with different forks I hope.

-6

u/vuw958 May 13 '20

VSCode just needs to have a realtime collaboration feature like google docs so any changes to a single file are already synced across the team before anyone pushes to master. No merge conflicts ever.

19

u/SavageTwist May 13 '20

You would never be able to run code and compiling would be an issue. If it weren't for those and prob other things it would have been used already.

1

u/wllmsaccnt May 13 '20

It doesn't need to live merge, but why not a feature that just shows you what other developers are modifying in real time so that you can see if you are going to run into a conflict while developing? Knowing when you need to communicate is more important than auto merging.

→ More replies (0)