1. 查看远程仓库
查看远程仓库的名字
git remote

查看详细的仓库名对应的 url
git remote -v

2. 添加远程仓库
git remote add t2web git@gitlab.d3j.io:chanjet/t2web.git
3. 从远程仓库抓取数据
git fecth [remote-name]
抓取到了远程仓库的最新信息,但没有合并到本地
4. 从远程仓库拉取和推送
git pull [remote-name branch-name]
拉取了远程仓库信息,并且合并到了本地
git push [remote-name branch-name]
5. 修改remote仓库名
git remote rename t2web t3web
6. 修改remote仓库的url
git remote set-url origin [http或ssh]
7. 删除remote仓库
git remote rm t3web
8. 强制覆盖远程分支
git push -f -u origin 分支名称
9. 删除远程分支
git push origin --delete xxx