git提交遇到的问题
! [rejected] other -> other (fetch first)
error: 推送一些引用到 'git@github.com:haohao-qw/LT.git' 失败
提示:更新被拒绝,因为远程仓库包含您本地尚不存在的提交。这通常是因为另外
提示:一个仓库已向该引用进行了推送。再次推送前,您可能需要先整合远程变更
提示:(如 'git pull ...')。
提示:详见 'git push --help' 中的 'Note about fast-forwards' 小节。
大概原因就是 意思是本地和远程的文件应该合并后才能上传本地的新文件,因此
1、先拉下来,自动合并
git pull origin master/your_name
2、再提交
git push -u origin master/your_name
浙公网安备 33010602011771号