All technological notes.
| 动作 | 对象 | 命令 | 备注 |
|---|---|---|---|
| 查看 | 远程仓库别名列表 | git remote |
|
| 查看 | 远程仓库详细列表 | git remote -v |
|
| 查看 | 指定远程仓库详细参数 | git remote show <remote_alias> |
|
| 添加 | 远程仓库链接 | git remote add <alias> <remote_url> |
|
| 查看 | 远程仓库指定链接 | git remote get-url --push|--all <remote_alias> |
|
| 修改 | 远程仓库别名 | git remote rename <old_name> <new_name> |
|
| 修改 | 远程仓库链接 | git config remote.<remote_alias>.url <new_url> |
|
| 删除 | 远程仓库 | git remote remove <remote_alias> |
命令
git remote

命令
git remote -v

命令
git remote show <remote_alias>

命令
git remote add <alias> <remote_url>

命令
git remote get-url --push|--all <remote_alias>

命令
git remote rename <old_name> <new_name>

git config --local -l 查看;git config remote.<remote_alias>.url <new_url> 修改。
命令
git remote remove <remote_alias>
