###添加远程仓库路径###1
git remote add github git@github.com:spemoon/spemoon.github.com.git
实际上,pull 就是 fetch + merge
1 | git pull github --all --tags |
把工作目录迁移到github上面:
1 | git remote add github git@github.com:spemoon/spemoon.github.com.git |
显示所有的远程仓库
1 | git remote -v |
重命名远程仓库
1 | git remote rename github gh |
删除远程仓库
1 | git remote rm github |
从远程仓库抓取数据,更新本地仓库:
1 | git fetch origin |
查看远程仓库信息,可用于跟踪别人的push:
1 | git remote show origin |