0

I'm working on a new branch created by a colleague. I have committed all the changes and when I try to git pull, it gives me an error:

$ git pull
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> kiet_tnp
$

What do I do? Without git pull, I cannot push my codes.

user3362364
  • 441
  • 11
  • 25
  • Possible duplicate of [git pull: There is no tracking information for the current branch](http://stackoverflow.com/questions/32056324/git-pull-there-is-no-tracking-information-for-the-current-branch) – chwarr Dec 23 '15 at 19:54

1 Answers1

2

Just like git is hinting, do:

git branch --set-upstream-to=origin/kiet_tnp kiet_tnp
git pull

assuming your colleague has created kiet_tnp branch that he's/she's asking you to pull.

zedfoxus
  • 35,121
  • 5
  • 64
  • 63