释放双眼,带上耳机,听听看~!
方法有三种:
方法1.修改命令
1
2
3 1git remote set-url origin <url>
2
3
方法2.先删后加
1
2
3
4 1git remote rm origin
2git remote add origin [url]
3
4
方法3.直接修改config文件
config:
1
2
3
4
5
6
7
8
9
10
11
12
13
14 1[core]
2 repositoryformatversion = 0
3 filemode = false
4 bare = false
5 logallrefupdates = true
6 symlinks = false
7 ignorecase = true
8 hideDotFiles = dotGitOnly
9[remote "origin"]
10 url = https://github.com/ZhangDi-d/SpringBootSample.git
11 fetch = +refs/heads/*:refs/remotes/origin/*
12
13
14