fatal: The current branch developer has no upstream branch.
程序员文章站
2022-03-07 10:23:01
...
今天在Mac命令行使用Git向服务端推送代码的时候,抱了这个错,fatal: The current branch developer has no upstream branch.
报错了,不要着急不要慌,它的报错下面给出了原因和解决办法:
To push the current branch and set the remote as upstream, use
git push --set-upstream origin developer
标黑的这一部分是重点,这是解决办法,只要执行了这一行代码就解决问题了。
出现这个问题的原因可能是(不太确认):我连接了多个Git账号,当我在当前账号下向服务器端推送代码的时候,出现了身份验证的问题而导致的问题。
转载于:https://my.oschina.net/u/1028424/blog/992728
上一篇: 2022秋招总结——好未来
推荐阅读
-
fatal: The current branch master has multiple upstream branches, refusing to puh. git push error!
-
git push 报错fatal the current branch master has no upstream branch和Everything up-to-date
-
fatal: The current branch dev has no upstream branch. To push the current branch and set the remote
-
fatal: The current branch xiao has no upstream branch. To push the current branch and set the remote
-
fatal: The current branch master has no upstream branch. To push the current branch and set
-
解决Git建立远程分支关联时fatal the current branch master has no upstream branch 问题
-
git提示fatal the current branch master has no upstream branch 问题
-
fatal: The current branch venueCamera has no upstream branch. To push the current branch and set the
-
fatal: The current branch developer has no upstream branch.
-
push出现问题:fatal: The current branch master has no upstream branch.