Hello situation is the following:
I have two remote branches: master and dev
dev has more commits than masters (git log).
On my local repository, I have cloned only master. So I'm positioned on master branch.
From this situation I'd like to pull dev branch without affecting the master.
What I did is:
$(master) : git pull origin dev:dev
But the result was:
I have now my dev branch updated, but also the master branch has been merged to dev branch (unexpected)
So my question is how should I pull from remote a specific branch to a local specific branch (even if I'm not positioned on the target branch)?
I thought the
$git pull origin specific_remotebranch:specific_localbranch
wasn't going to affect my current branch... is it (always), ?