git push -u origin master
后报错
Username for ‘https://gitee.com’: xxxxxx
Password for ‘https://Lizxxxxx@gitee.com’:
To https://gitee.com/Lizxxxxx0321/LZMtest.git
! [rejected] master -> master (fetch first)
error: 无法推送一些引用到 ‘https://gitee.com/Lizhiming0321/LZMtest.git’
提示:更新被拒绝,因为远程仓库包含您本地尚不存在的提交。这通常是因为另外
提示:一个仓库已向该引用进行了推送。再次推送前,您可能需要先整合远程变更
提示:(如 ‘git pull …’)。
提示:详见 ‘git push --help’ 中的 ‘Note about fast-forwards’ 小节。
直接上解决方案
git push -u origin +master