hint: Updates were rejected because the remote contains work that you do
! refs/heads/master:refs/heads/master [rejected] (fetch first)
Done
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.
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,输入以下命令
git pull origin master --allow-unrelated-histories
git push origin master
然后输入码云的账号密码即可