解决GitHub报错

一、 hint: Updates were rejected because the remote contains work that you do

  1. hint: Updates were rejected because the remote contains work that you do

    1656068267464

  2. 解决方法

    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