问答详情
源自:-

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


提问者:一路向北吧 2019-08-20 21:25

个回答