! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@gitee.com:chenjunbin2345/test-mygit.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
错误的意思:大概原因就是 意思是本地文件落后,要和远程的文件应该合并后才能上传本地的新文件
解决方案:
输入代码:
git pull orgin master
:拉取远程文件
git push orgin master
: 推送文件