贝可考拉珍宝居
为远程仓库添加别名。
$ git remote add john git@github.com:johnsomeone/someproject.git# 显示所有的远程主机$ git remote -v# 列出某个主机的详细信息$ git remote show name
git remote命令的实质是在.git/config文件添加下面的内容。
git remote
.git/config
$ git remote add bravo ../bravo
[remote "bravo"] url = ../bravo/