When working with a fork, it is often useful to have an upstream repository (your main repository) configured with both remote and fork (client A repository). For example, you probably already have origin , which is a fork.
Add a new upstream console to present the Master repository:
git remote add upstream git@bitbucket.org :user/master-repo.git git fetch upstream
You should now be able to see all the relevant branches. For example, if you try to merge the master branch, this will matter:
master (local)origin/master (Client A)upstream/master (master repo)
If you visualize these branches using gitk or git log --all --graph --decorate , you can probably see where the conflict is coming from. Most likely, you will want to merge the changes from both remotes into the local master branch:
git checkout master git merge upstream/master
Once you do this, you should be push purely origin :
git push origin master
Chris
source share