-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git多用户配置问题 #3
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
配置步骤
配置不同的ssh key,使用
ssh-keygen
命令产生两个不同的ssh key,操作如下:生成ssh key后,需要在github和gitlab上的profile中编辑ssh key,在github中是这样的:
New SSH key
~/.ssh/id_rsa_github.pub
里的内容拷贝到Key
中Add SSH key
完成添加在
~/.ssh
目录下配置config
文件,内容形如下:配置从github上拉取的repository的
grpc/.git/config
的内容(以grpc为例),增加如下内容:注意:以后每个从github上拉取的repository都需要添加如上信息!
The text was updated successfully, but these errors were encountered: