步骤
- 查看远程地址
$git remote -v
git remote -v
origin https://github.com/liuyuelintop/twittter.git (fetch)
origin https://github.com/liuyuelintop/twittter.git (push)
- 修改远程地址
使用remote set-url
命令进行修改
git remote set-url origin https://github.com/liuyuelintop/welcome.git
- 再次查看远程地址
$git remote -v
git remote -v
origin https://github.com/liuyuelintop/welcome.git (fetch)
origin https://github.com/liuyuelintop/welcome.git (push)
刘月林
写于湖北荆门
2018/08/23
网友评论