I recently performed the following actions in git:
git checkout a
git pull
(this downloaded some new code which was added in another branchb
)git merge master
git checkout master
- At this point I expected
master
to contain the changes downloaded in 2) however they weren't present. I rangit pull
again which fetched the changed.
Does git pull
fetch and merge the changes only into the current branch (which I'm checked out into)? If yes, is there a git command to merge the downloaded changed into every/specific branches?