Git merge和git pull to local branch不起作用

时间:2018-04-06 18:25:17

标签: git

我刚刚在我的本地分支上运行了git merge master,解决了它所呈现的冲突。

但是,git现在不再允许我使用git push提交到我的分支。我刚刚运行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=<remote>/<branch> 4318-niall-activities

我不想完成当前的工作,但我想提交一份Pull请求以及我目前的所有工作。有人可以提供一些建议吗?

1 个答案:

答案 0 :(得分:0)

当错误消息指出时,您的本地分支未链接到远程存储库。你可以git push origin [remotebranch]或使用git branch --set-upstream-to=<remote>/<branch> 4318-niall-activities来推或拉,用你的用例替换远程和分支。远程origin通常