I have one remote repository and two working dirs. Both are setup with this one remote repository.
From working DIR_1 I make push from branch dev like that:
git push origin dev
Next when I'm on working DIR_2 I would like to get the reference to this new remote branch dev. So I enter the following:
git fetch origin # To update and fetch new remote branches
git branch -a # To list all branches (local and remote) that my local git see
Now I have problem because git fetch didn't see the new remote dev branch. Can somebody help me with that. I'am doing something wrong. When I switch to remote machine and execute command:
git branch
Then I see this dev branch. What to do?