I have a local branch which I want to link to a remote branch. So when I do git pull
it will auto use linked remote branch
I tried to use git branch --track origin/branchname
but it did a weird thing and created kind of a tag with name origin/branchname
And git pull
still didn't auto select linked branch
on other hand git branch -u origin/branchname
did work and git pull
autoselects correct branch
what is the diff with --track
and -u
?