1. 查看远程仓库地址
git remote -v
2. 切换远程仓库地址
先删除后添加
git remote rm origin //删除现有远程仓库
git remote add origin url //添加新远程仓库
3 直接修改配置文件
进入git_test/.git
vim config
[core]
repositoryformatversion = 0
filemode = true
logallrefupdates = true
precomposeunicode = true
[remote "origin"]
url = git@github.com:tyyking/sharding-sphere-demo.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
修改 [remote “origin”]下面的url即可