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

上一篇:git报错:'fatal:remote origin already exists'


下一篇:Nginx upstream的5种权重分配