配置 Gitlab 公钥

配置 Gitlab 公钥

生成公钥

ssh-keygen -t rsa -C "[email protected]" -b 4096

复制公钥

仅仅是提供一种无须打开id_rsa.pub文件便捷的方式去复制公钥

# mac
pbcopy < ~/.ssh/id_rsa.pub

# unix or linux (需要 xclip 工具)
xclip -sel clip < ~/.ssh/id_rsa.pub

# windows
type %userprofile%\.ssh\id_rsa.pub | clip

# git bash 
cat ~/.ssh/id_rsa.pub | clip

添加到Gitlab、Github的配置即可

你可能感兴趣的:(Git,java,开发语言,后端)