问题描述: 

    git.exe push --progress "origin" master:master

    To https://gitee.com/qi--yu/hodgepodge.git
    ! [rejected]        master -> master (fetch first)
    error: failed to push some refs to 'https://gitee.com/qi--yu/hodgepodge.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.

解决办法:

删除本地仓库再建立一个,即右键删除文件夹再创建,放心,你的贡献和已经上传的项目还在,当然,你也可以选择更新本地仓库。

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐