为了账号安全,请及时绑定邮箱和手机立即绑定

sourcetree 关联远端仓库,无法推送本地文件

git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags --set-upstream origin refs/heads/master:refs/heads/master 

Pushing to git@gitee.com:gil2016/demo4.git

To gitee.com:gil2016/demo4.git

 ! [rejected]        master -> master (fetch first)

error: failed to push some refs to 'git@gitee.com:gil2016/demo4.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.

Completed with errors, see above


正在回答

举报

0/150
提交
取消
Git入门
  • 参与学习       43688    人
  • 解答问题       83    个

命令行和图形界面工具两种形式的Git使用。

进入课程

sourcetree 关联远端仓库,无法推送本地文件

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信