Ya the issue is concurrently modifying a live document means the code will pretty much never be a working version.
Imagine if you start changing changing a variable name, so now in half the places it’s called
left and in the other half its called
left_motor. Until you finish making that change everywhere, I can’t test the code at all. Or I am writing new code and that new code is only half written, it’s now illegal code until you finish
Int joystick =
Ends up with just never being valid. On an essay it’s fine, you can rewrite section 1 while I work on section 2. There isn’t a dependence on every moment the essay being perfectly articulate.
So what git does is have you “commit” changes when they actually make sense to he added to the whole program. Say finishing rewriting a function, or renamed a bunch of variables. The other user doesn’t get the updates until you commit that you have fixed all the grammar and use consistent names.