fork来的上游仓库版本优先于本地仓库
解决方法:
1.查看上游仓库:git remote -v
2.添加上游仓库地址:git remote add upstream xxx.git
3.切换到主分支:git checkout master
4.从远程下载分支到本地:git fetch upstream
5.合并分支:git merge upstream/master
6.推送到github:git push origin master
git问题解决方法
最新推荐文章于 2024-08-10 09:47:10 发布