git 报错 gitThere is no tracking information for the current branch. Please specify which ...

Git command git pull or git push error

After creating a local branch, push the local branch to the remote library. When the development needs to be pushed, use git pull or git push to report an error

gitThere 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> merged0.9.6

This is because there is no connection between the local branch and the remote branch (use git branch -vv to view the relationship between the local branch and the remote branch). According to the command line prompt, you only need to execute the following command

git branch --set-upstream-to=origin/remote branch name local branch name

Reprinted from: http://blog.csdn.net/soindy/article/details/44077831

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325523339&siteId=291194637