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
724

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

 

Alternative titles

  1. Git fix for - git branch --set-upstream-to=origin/<branch> master
  2. Git fix for - If you wish to set tracking information for this branch you can do so with: git branch --set-upstream-to=origin/<branch> master
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
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