长久不用git发现自己都忘记了。。。在此记录下git配置,以便日后查看。
git配置
- 配置本地仓库账号和邮箱 
git config --global user.name "YourName" git config --global user.email "your-email@example.com" - 生成ssh密钥 
ssh-keygen -t rsa -C "your-emial@example.com" - 登录github/gitlab配置对应的ssh key
 
复制C:\Users\Administarator\.ssh\id_rsa.pub的内容,粘贴到gitlab->profile setting->SSH keys

同步代码到本地
git clone 【仓库地址】-b dev
















