**查看远程**
```
git remote [-v]
```
- -v 显示 URL
更多信息:
```
git remote show <remote_name>
```
**添加远程**
```
git remote add <shortname> <url>
```
**重命名远程**
```
git remote rename <old_name> <new_name>
```
**移除远程**
```
git remote rm <shortname>
```
**从远程抓取与拉取**
抓取(手动合并):
```
git fetch [remote-name]
```
拉取(自动合并):
```
git pull [remote-name]
git pull origin master
```
**推送到远程**
```
git push [remote-name] [branch-name]
```