git push origin master To github.com:monkey-wenjun/python2018.git ! [rejected] master -> master (fetch first) error: failed to push some refs to'git@github.com:monkey-wenjun/python2018.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: tothe same ref. You may want tofirst 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 fetch origin warning: no common commits remote: Counting objects:3, done. remote: Compressing objects:100% (2/2), done. remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 Unpacking objects:100% (3/3), done. From github.com:monkey-wenjun/python2018 * [new branch] master -> origin/master