打赏

git remote使用

1.添加远端仓库

git remote add origin https://github.com/user/repo.git

2.查看远端仓库

git remote -v

3.更改远端仓库URL,ssh->https

git remote set-url origin https://github.com/USERNAME/REPOSITORY.git

4.重命名远端仓库

git remote rename origin destination

5.删除远端仓库

git remote rm destination
posted @ 2020-04-16 15:05  苍山落暮  阅读(151)  评论(0编辑  收藏  举报