I'm working half time at home, half time at the office. Each task must be done into a dedicated, separated, branch, merged after peer review.
Our project is backed by Bitbucket, we use Jira and Jenkins too.
I use only one remote repository and two local repositories.
I have a recurrent problem: some conflicts occurs between me (@home) and me (@agency)...
here is my process:
Monday, at the office, in a branch named "JamesBond007" derived from master :
git add --all
git commit [--amend]
git push [-f] origin remote/JamesBond007
Tuesday, at home:
git checkout master
git pull
git checkout JamesBond007
git pull --rebase origin master
Wednesday, at the office:
git checkout master
git pull
git checkout JamesBond007
git pull --rebase origin master **<-- conflict: git mergetool command needed!!!**
My workaround:
rm -fr repo
git clone ssh:repos-url
Where is my mistakes, how can I push/pull code from two local repos to/from the server without conflict?