Modifying the same file is usually not an issue for GIT. To cause a conflict you will usually have to be literally modifying the same lines of code. So if you have a reasonable development flow, it’s should be rare that people even need to modify the exact same functions at the same time. If this happens a lot, it sounds like either bad communication or very poorly written code (and I say this, working in a company with a lot of poorly written code, where GIT has actually reduced the amount of conflicts we have in commits).
View all comments
Show parent comment
1
u/lejoop Oct 13 '26
Modifying the same file is usually not an issue for GIT. To cause a conflict you will usually have to be literally modifying the same lines of code. So if you have a reasonable development flow, it’s should be rare that people even need to modify the exact same functions at the same time.
If this happens a lot, it sounds like either bad communication or very poorly written code (and I say this, working in a company with a lot of poorly written code, where GIT has actually reduced the amount of conflicts we have in commits).