场景:
使用git 的时候,git push 然后提示我以下错误
$ git push
fatal: The current branch xiao has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin test
以上,其实已经告诉我们问题出现的原因和解决方案了。
原因:在远端没有当前分支
解决方法: 解决方法
_
总结:
在使用git 命令的时候,在出现错误的时候,git 会提示问题出现的原因以及解决方案。所以大家认真读一读错误提示就能找到解决方案了哦。

16万+

被折叠的 条评论
为什么被折叠?



