git修改远程仓库地址
作者:
Mark_ZSQ | 来源:发表于
2021-01-27 09:23 被阅读0次
一
git remote set-url origin <url>
二
git remote rm origin
git remote add origin [url]
3.直接修改config文件
![](https://img.haomeiwen.com/i17979893/403a15ba2e88feb2.png)
image.png
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "origin"]
url = https://github.com/ZhangDi-d/SpringBootSample.git
fetch = +refs/heads/*:refs/remotes/origin/*
本文标题:git修改远程仓库地址
本文链接:https://www.haomeiwen.com/subject/gbpozktx.html
网友评论