fatal: The current branch test has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin test
执行git push --set-upstream origin test
就可以了,为什么?
fatal: The current branch test has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin test
执行git push --set-upstream origin test
就可以了,为什么?
13 回答13k 阅读
7 回答2.2k 阅读
3 回答1.4k 阅读✓ 已解决
6 回答1.3k 阅读✓ 已解决
2 回答1.4k 阅读✓ 已解决
3 回答1.4k 阅读✓ 已解决
6 回答1.2k 阅读
就是让你指定当前分支的上游分支 不然不知道你想推到哪个分支,因为本地分支和远程分支名称并不限制必须一致。