You should first merge devel
into myBranch
until you are ready to incorporate your changes into devel
. Another developer pushing to devel
does not require you to do the same immediately.
# Get any new changes from the remote
git fetch
# You don't necessarily need to update your copy of devel yet;
# just merge the new commits from devel into myBranch
git merge origin/devel
# continue working on myBranch
# Time to merge your changes to devel.
git checkout devel
git pull
git merge myBranch
Merging devel
into myBranch
while you develop lets you resolve any merge conflicts as they come along, rather than having to resolve all of them at once when you finally merge myBranch
into devel
. If you merge often, you should minimize, if not eliminate, the merge conflicts during git merge myBranch
.