Git CMD - remote: Manage set of tracked repositories

命令格式

git remote [-v | --verbose]

git remote add [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=<fetch|push>] <name> <url>

git remote rename <old> <new>

git remote remove <name>

git remote set-head <name> (-a | --auto | -d | --delete | <branch>)

git remote set-branches [--add] <name> <branch>…​

git remote set-url [--push] <name> <newurl> [<oldurl>]

git remote set-url --add [--push] <name> <newurl>

git remote set-url --delete [--push] <name> <url>

git remote [-v | --verbose] show [-n] <name>…​

git remote prune [-n | --dry-run] <name>…​

git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)…​]

 

命令参数

-v, --verbose
  详情模式。

 

实例

a) 查看远程仓库

$ git remote -v

 

更多

http://git-scm.com/docs/git-remote

 

posted on 2015-12-31 14:42  huey2672  阅读(311)  评论(0编辑  收藏  举报