解决GitHub报错问题
解决GitHub报错
一、 hint: Updates were rejected because the remote contains work that you do
hint: Updates were rejected because the remote contains work that you do
解决方法
1.git pull origin master --allow-unrelated-histories
2.git pull origin master
3.git init
4.git remote add origin git@github.com:arenxiaolanz/blog.git
(可忽略)
5.git add .
6.git commit -m 'testst'
7.git push -u origin master
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Ren の Blog!
评论