Languages
[Edit]
EN

Git FIX for: There is no tracking information for the current branch. Please specify which branch you want to merge with.

7 points
Created by:
ParaEagle
484

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

 

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join