git remote repository Using
reference site
查看远程仓库
1 | $ git remote #显示仓库信息 |
添加远程仓库
1 | $ git remote add pb git://github.com/paulboone/ticgit.git #git remote add [shortname] [url] |
远程仓库抓取数据
1 | $ git fetch pb # git fetch [remote-name] |
推送数据到远程仓库
1 | $ git push origin master #git push [remote-name] [branch-name] |
查看远程仓库信息
1 | $ git remote show origin #git remote show [remote-name] |