$ git push fatal: The current branch code has no upstream branch. To push the current branch and set - Go语言中文社区

$ 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 进行上传代码分支.这样就就可以进行版本管控了

在这里插入图片描述

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/weixin_43764814/article/details/88854691
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2019-09-01 19:03:47
  • 阅读 ( 1412 )
  • 分类:

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢