git mac客户端上的奇怪行为

时间:2018-03-20 16:48:03

标签: git

当我从本地分支推送时使用: git push git push origin develop 命令

服务器也会返回:

To git.coding.net:maydaygjw/research-ui.git
 ! [rejected]        develop -> refs/for/develop (fetch first)
error: failed to push some refs to 'git@git.coding.net:maydaygjw/research-ui.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

虽然使用git push origin develop:develop工作正常但我实际上每次都拉

哪个开发分支跟踪本地配置中的远程开发分支:

❯ git branch -vv
* develop d48ec5f [origin/develop] fix
  master  a390f07 [origin/master: ahead 1] fix

但在Windows上,一切正常,我尝试了不同的git mac客户端,但都是这样的,这是mac os的错误吗?

0 个答案:

没有答案