GitSsh
来自三线的随记
git 多个remote时候如何管理
git 多个remote如何管理
background:因为某些原因我需要有多个remote 并单独 pull或者fetch
添加remote
git remote add gitlab git@givenurl:[email protected]
//添加新的remote并命名为gitlab
单独fetch或者pull
git remote -v
# gitlab git@givenurl:[email protected] (fetch)
# gitlab git@givenurl:[email protected] (push)
# origin [email protected]:[email protected](fetch)
# origin [email protected]:[email protected](push)
//查看remote信息
git remote show gitlab
git fetch gitlab master
//git fetch gitlab/master master
Could not open a connection to your authentication agent 错误
ssh-agent bash