$ git push fatal: The current branch code has no upstream branch. To push the current branch and set

$ git push
fatal: The current branch code has no upstream branch.
致命:当前的分支代码没有上游分支。
To push the current branch and set the remote as upstream, use
若要推送当前分支并将远程设置为上游,请使用
git push --set-upstream origin code

可以使用 : git push --set-upstream origin code 进行上传代码分支.这样就就可以进行版本管控了

猜你喜欢

转载自blog.csdn.net/weixin_43764814/article/details/88854691