git 安装
- 下载:https://git-scm.com/download/win
- 默认安装
- 安装成功 ,在桌面右键会有【Git bash here 】然后输入 git --version 查看版本
本地git安装配置
安装好git 配置git
- git config --global user.name "grow"
- git config --global user.email "fahao@ir.com"
- git commit --amend --reset-author
生成shh - ssh-keygen -t rsa -C "user.email"
- ssh-keygen -t rsa -C "fanjianhao@igrowiser.com"
window 新增多个gitlab 私钥密钥,新建一个config 文件里面配置 - Host 120.24.157.99 HostName 120.24.157.99 User fanjianhao IdentityFile C:\Users\fanji.ssh\id_rsa
- Host 192.168.31.22 HostName 192.168.31.22 User fjh IdentityFile C:\Users\fanji.ssh\fjhigrowiser
网友评论