【Git】Git报错:Branch ‘master‘ set up to track remote branch ‘master‘ from ‘orgin‘

前言:如果遇到将从git上拉取的代码,直接上传到新的git仓库地址,注意,需要修改git源,否则,会报错。
报错信息如下:

Git报错:Branch ‘master’ set up to track remote branch ‘master’ from ‘orgin’

解决方案:
①移除之前的git源:

git remote rm origin

②再次连接新的git源:

git remote add origin '仓库地址'

猜你喜欢

转载自blog.csdn.net/qq_26780317/article/details/126231632