To gitee.com:yangzhuo85/testcongtu.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'gitee.com:yangzhuo85/testcongtu.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.
这里是报错提示
就是你本地的代码和云端的代码不一样,所以出现了这种问题
解决方案也很简单
git pull --rebase origin master
这句话的意思是让你去编辑器里面看一下 是否有这种情况诞生,如果存在就点击保留双方即可
然后再 git add . 和 git commit -m '需要填写的东西' 之后再次使用 git status 会弹出
直接输入 git rebase --continue 不出意外只会输出一行
之后 直接进行一个 git push origin master 就可以了