我想我可能错误地为Git的命令行工具配置了配置文件。
每当我尝试使用git存储库URL安装某些东西时,都会收到以下错误:
fatal: '.insteadofgithub.com/angular/bower-angular.git' does not appear to be a git repository我尝试了用http://替换git://的网址,但不幸的是,它不能恢复。
是否有命令行来重新配置我的URL?
发布于 2014-10-08 17:20:52
看起来insteadOf被滥用了。如果你想使用https://而不是git://,或者其他东西,你可以使用:
git config --global url."https://".insteadOf git://这将在您的${HOME}/.gitconfig文件中添加以下内容:
[url "https://"]
insteadOf = git://https://stackoverflow.com/questions/26251314
复制相似问题