GIT项目添加多个远程分支

  1. 添加一个远程分支
git remote add [远程分支名称] 地址
git remote add in http://abc%40sina.com@git.com

注意,这里如果是http的Git地址,需要在远程分支地址前加上用户名,如果用户名包含‘@’,需要转换成‘%40’

  1. 删除远程分支
git remote remove [远程分支名称]
  1. 拉取代码和提交代码
git pull [远程分支名称] [分支]
git push [远程分支名称] [分支]