How to resolve conflict in pull request?
up vote
0
down vote
favorite
Suppose I have two branches, develop and release_v1, and I want to merge the release_v1 branch into develop.
I do a pull request to merge release_v1 to develop, but, after the pull request has been done, I discover that there is a conflict
How can I solve the conflict? which are the steps to perform?
Thanks in advance.
git bitbucket
add a comment |
up vote
0
down vote
favorite
Suppose I have two branches, develop and release_v1, and I want to merge the release_v1 branch into develop.
I do a pull request to merge release_v1 to develop, but, after the pull request has been done, I discover that there is a conflict
How can I solve the conflict? which are the steps to perform?
Thanks in advance.
git bitbucket
Did you try googling? Atlassian has a document answering your question confluence.atlassian.com/bitbucket/…
– clmno
Nov 17 at 4:53
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Suppose I have two branches, develop and release_v1, and I want to merge the release_v1 branch into develop.
I do a pull request to merge release_v1 to develop, but, after the pull request has been done, I discover that there is a conflict
How can I solve the conflict? which are the steps to perform?
Thanks in advance.
git bitbucket
Suppose I have two branches, develop and release_v1, and I want to merge the release_v1 branch into develop.
I do a pull request to merge release_v1 to develop, but, after the pull request has been done, I discover that there is a conflict
How can I solve the conflict? which are the steps to perform?
Thanks in advance.
git bitbucket
git bitbucket
asked Nov 16 at 23:38
user8545255
1467
1467
Did you try googling? Atlassian has a document answering your question confluence.atlassian.com/bitbucket/…
– clmno
Nov 17 at 4:53
add a comment |
Did you try googling? Atlassian has a document answering your question confluence.atlassian.com/bitbucket/…
– clmno
Nov 17 at 4:53
Did you try googling? Atlassian has a document answering your question confluence.atlassian.com/bitbucket/…
– clmno
Nov 17 at 4:53
Did you try googling? Atlassian has a document answering your question confluence.atlassian.com/bitbucket/…
– clmno
Nov 17 at 4:53
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
How can I solve the conflict? which are the steps to perform?
Once you have conflicts follow those steps to fix it:
# clean your local working directory with a stash or commit
# update your local repo with the content of the remote branches
git fetch --all --prune
# checkout the release_v1 branch
git checkout release_v1
# update the content if required
git pull origin release_v1
# merge the desired branch
git merge origin/master
At this point, your release_v1 contains the content of the 2 branches with the conflicts
And now in your conflicts.
Once you have done with that
# add the fixed conflicts and commit
git add . && git commit
git push origin release_v1
Go back to your git server and now you will be able to merge the pull request since all conflicts are resolved
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
How can I solve the conflict? which are the steps to perform?
Once you have conflicts follow those steps to fix it:
# clean your local working directory with a stash or commit
# update your local repo with the content of the remote branches
git fetch --all --prune
# checkout the release_v1 branch
git checkout release_v1
# update the content if required
git pull origin release_v1
# merge the desired branch
git merge origin/master
At this point, your release_v1 contains the content of the 2 branches with the conflicts
And now in your conflicts.
Once you have done with that
# add the fixed conflicts and commit
git add . && git commit
git push origin release_v1
Go back to your git server and now you will be able to merge the pull request since all conflicts are resolved
add a comment |
up vote
0
down vote
How can I solve the conflict? which are the steps to perform?
Once you have conflicts follow those steps to fix it:
# clean your local working directory with a stash or commit
# update your local repo with the content of the remote branches
git fetch --all --prune
# checkout the release_v1 branch
git checkout release_v1
# update the content if required
git pull origin release_v1
# merge the desired branch
git merge origin/master
At this point, your release_v1 contains the content of the 2 branches with the conflicts
And now in your conflicts.
Once you have done with that
# add the fixed conflicts and commit
git add . && git commit
git push origin release_v1
Go back to your git server and now you will be able to merge the pull request since all conflicts are resolved
add a comment |
up vote
0
down vote
up vote
0
down vote
How can I solve the conflict? which are the steps to perform?
Once you have conflicts follow those steps to fix it:
# clean your local working directory with a stash or commit
# update your local repo with the content of the remote branches
git fetch --all --prune
# checkout the release_v1 branch
git checkout release_v1
# update the content if required
git pull origin release_v1
# merge the desired branch
git merge origin/master
At this point, your release_v1 contains the content of the 2 branches with the conflicts
And now in your conflicts.
Once you have done with that
# add the fixed conflicts and commit
git add . && git commit
git push origin release_v1
Go back to your git server and now you will be able to merge the pull request since all conflicts are resolved
How can I solve the conflict? which are the steps to perform?
Once you have conflicts follow those steps to fix it:
# clean your local working directory with a stash or commit
# update your local repo with the content of the remote branches
git fetch --all --prune
# checkout the release_v1 branch
git checkout release_v1
# update the content if required
git pull origin release_v1
# merge the desired branch
git merge origin/master
At this point, your release_v1 contains the content of the 2 branches with the conflicts
And now in your conflicts.
Once you have done with that
# add the fixed conflicts and commit
git add . && git commit
git push origin release_v1
Go back to your git server and now you will be able to merge the pull request since all conflicts are resolved
answered 2 days ago
CodeWizard
48.7k126588
48.7k126588
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53346762%2fhow-to-resolve-conflict-in-pull-request%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you try googling? Atlassian has a document answering your question confluence.atlassian.com/bitbucket/…
– clmno
Nov 17 at 4:53