There are patterns within your code style you can use to simplify the way you’re interacting with GIT. Or any other Version Control System for that matter…
To give you a rough idea of what you should be looking for, think of when need to list a whole bunch of arguments for a function.
This does not give the full picture, so I suggest you keep on reading…
Here why:
(more on the last argument in the next point)
This is language-specific. Not all programming languages allow trailing commas. Unfortunately none of the languages I’m using on a daily basis (Java & Kotlin) allow them. Let’s look at Python:
(if you didn’t know what I was talking about)
Unfortunately for languages without trailing commas this has no positive effect, but you can still use this pattern as a way of learning good habits. After all, Kotlin might get this feature in the future.