git 多个remote如何管理
background:因为某些原因我需要有多个remote 并单独 pull或者fetch
添加remote
git remote add gitlab git@givenurl:user@project.git
//添加新的remote并命名为gitlab
单独fetch或者pull
git remote -v
# gitlab git@givenurl:user@project.git (fetch)
# gitlab git@givenurl:user@project.git (push)
# origin git@github.com:user@project.git(fetch)
# origin git@github.com:user@project.git(push)
//查看remote信息
git remote show gitlab
git fetch gitlab master
//git fetch gitlab/master master