EN
Git FIX for: There is no tracking information for the current branch. Please specify which branch you want to merge with.
7
points
Problem:
I've changed my remote url in the past to different repo with the same code and now I have a little problem.
During git pull I get error:
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> master
Solutions:
Solution 1, we can pull only master:
git pull origin master
Solution 2, we can set upstream to master, and later git pull will behave like before:
git branch --set-upstream-to=origin/master master
git pull