前言:如果遇到将从git上拉取的代码,直接上传到新的git仓库地址,注意,需要修改git源,否则,会报错。
报错信息如下:
Git报错:Branch ‘master’ set up to track remote branch ‘master’ from ‘orgin’
解决方案:
①移除之前的git源:文章来源:https://www.toymoban.com/news/detail-508321.html
git remote rm origin
②再次连接新的git源:文章来源地址https://www.toymoban.com/news/detail-508321.html
git remote add origin '仓库地址'
到了这里,关于【Git】Git报错:Branch ‘master‘ set up to track remote branch ‘master‘ from ‘orgin‘的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!