转自:http://blog.youkuaiyun.com/xiruanliuwei/article/details/6919416
git remotegit remote 不带参数,列出已经存在的远程分支,例如:
#git remote
origin_apps
git remote -v | --verbose 列出详细信息,在每一个名字后面列出其远程url,例如:
#git remote -v
origin_apps gitolite@scm:apps/Welcome.git (fetch)
origin_apps gitolite@scm:apps/Welcome.git (push)
需要注意的是,如果有子命令,-v | --verbose需要放在git remote与子命令中间。
git remote add name url 在url创建名字为name的仓库(Adds a remote named <name> for the repository at <url>)
name为远程仓库的名字
git remote show name 必须要带name,否则git remote show的作用就是git remote,给出remote name的信息。
本文介绍了如何使用Git命令管理远程仓库,包括列出远程分支、显示详细信息、添加远程仓库等。通过具体示例展示了git remote命令的基本用法及常用选项。
734

被折叠的 条评论
为什么被折叠?



