GIT提交报错,是什么意思呢?

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree commit -q -F /var/folders/c1/1l_k0nkj5zl0f26qll1p40sm0000gn/T/SourceTreeTemp.DTlcFH 


git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --set-upstream origin refs/heads/Dev:refs/heads/Dev 
2018-01-03 11:28:28.359 git-credential-sourcetree[7881:213624] Error (internetKeychainItemForServer:withUsername:path:port:protocol:) - The specified item could not be found in the keychain.
To https:**********.git(这里是我隐藏的Git地址)
 ! [rejected]        Dev -> Dev (non-fast-forward)
error: failed to push some refs to 'https:**********.git(这里是我隐藏的Git地址)'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Completed with errors, see above

这是什么错啊,不能提交啊?

阅读 3k
3 个回答

你当前分支落后了,先pull一下,再提交。

hint: 'git pull ...') before pushing again. //看这句

.....别的电脑修改了然后已经提交,你换了台电脑修改在提交....当然提交不上去....本地仓库跟远程仓库冲突,先把远程仓库的更新跟你本地的同步了,在提交。

新手上路,请多包涵

先pull 再说

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进