N
N
Nikolai Fomin2015-10-10 07:00:25
git
Nikolai Fomin, 2015-10-10 07:00:25

How to work with Git in a team?

Good afternoon.
I am mastering git, I decided to play around with branches and create my own branches for separate logic in the application. The remote repository is stored on Bitbucket. Actually, the problem is this: from each branch I make a pull request to master, then on any one branch merge and after that conflicts begin on other branches, because the previous version of the repository hangs on them.
It is clear that conflicts can be resolved by hand, but the problem is that the more branches, the more conflicts, which means that each release will take a lot of time just to resolve conflicts.
How are such problems circumvented in team work? Perhaps there are some branch structures?
Thanks for answers.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
J
Jacob E, 2015-10-10
@Zifix

create your own branches for separate logic in the application

You clearly do not understand the essence of Git and are doing it wrong.
Here's a great tutorial .

P
Pavel Ivanov, 2015-10-10
@eastywest

After certain logic is implemented, you merge with the master, and the branch can essentially be deleted. I don’t understand what conflicts you have, do you constantly switch between branches or what?

T
Think With Your Head, 2015-10-10
@Vyad

first you need to learn how to work with one branch
add
commit
pull
push
is enough

Z
z0rgoyok, 2015-10-10
@z0rgoyok

using gitflow, very satisfied

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question