V
V
Vadim2020-06-02 15:00:48
git
Vadim, 2020-06-02 15:00:48

Will there be a conflict in the Pull Request?

Hello everyone,

let's say me and another person are working on the same file (settings.py) - each created a branch from develop at the same time, I edited the file (added new text) and do a Pull Request to develop , which is then approved/merged, and then it makes a Pull Request , but this file in the develop branch has already been added after my merged PullRequest... how to avoid such conflicts - do git fetch or...

all the best,
Vadim

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlexChebanenko, 2020-06-04
@AlexChebanenko

Pull develop into your branch regularly:
git pull origin develop
You can't avoid what can't be avoided, but merge conflicts will be less painful as long as the memory of the changes made is fresh.

V
Vadim, 2020-06-04
@Viji

So after all, your team is pulling the latest changes to the develop branch,
and we still need to do it on our local

git checkout develop
git merge branchfromdevelop

strange, but no one described it !!!
I just don’t quite understand what the state will be after this merge !
if everything is fine, then do git push origin branchfromdevelop and then create your own pull request (for example, on Github), and if not, then fix it before Pull Request

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question