How do I work as a team with Git on a file that is modified on each branch?

Asked

Viewed 63 times

-3

I’m working on a team of programmers who aren’t very familiar with Git. The question is:

We have an X file that is vital to the operation of the project. The problem is that in each branch we need to modify it. What would be the ideal solution not to cause any kind of conflict?

1 answer

1

It depends on the file type. Binary files are not favorable to be used with summer control this way. Text files are easier to merge.

Now the question of conflict itself is inevitable. Git, like any other VCS tool, will only help you manage conflicts, but avoiding them is impossible, as you might notice in your own question. The real problem is more communication between the components of the project.

The best in these cases is to establish a file usage protocol. Something like an email or a team chat communication channel, so it’s easy to know who’s in possession at that moment, for example.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.