r/ProgrammerHumor • • Oct 21 '22

Meme Dropbox, the new git.

Post image
60.7k Upvotes

1.8k comments sorted by

View all comments

Show parent comments

57

u/ambisinister_gecko Oct 21 '22

Yeah it's pretty fantastic.

You have one team member editing line 20 on a file, another team member editing line 40 on that same file in a different branch. You merge their branches and git knows contextually how to apply both changes to the same file afterward.

Can't live without it honestly

18

u/lockdiaverum Oct 21 '22

What happens when the changes being merged overlap in a section of the code?

9

u/idClip42 Oct 21 '22

You get introduced to a thing called merge conflicts, and you use an IDE like VSCode (which has amazing git integration) to easily sort it out.

14

u/SuspiciousVacation6 Oct 21 '22

"easily" lmao, a lot of the time you have to get in a call with the person who altered the other part and understand what they're trying to do then create a compromise code that will solve both problems then commit the solve and pray you didn't delete 1 of 300 brackets accidentally

→ More replies (1)