先注冊一個(gè)GitHub,參考:https://blog.csdn.net/jiekexu/article/details/85888997
在最后一步git push origin master操作的時(shí)候出錯(cuò):

git push操作出錯(cuò)
在網(wǎng)上查找解決方案,都說沒有執(zhí)行pull操作導(dǎo)致的,可是執(zhí)行pull操作也有問題:

git pull操作有問題
于是找到資料:https://blog.csdn.net/weixin_43290229/article/details/86410263
通過強(qiáng)制push完成了git push操作。
可是git pull操作還是不行,通過資料 https://blog.csdn.net/tangxinzhuan/article/details/83150008
執(zhí)行命令:git branch --set-upstream-to=origin/master master 之后再執(zhí)行g(shù)it pull操作可以了。(翻看了下之前所敲的命令,發(fā)現(xiàn)之前執(zhí)行過一次這個(gè)命令,但是=號(hào)敲成了-,還以為是命令沒起作用?。?/p>

git pull操作成功