长久不用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
本文详细介绍了如何配置Git账户及邮箱信息,生成SSH密钥并将其添加到GitHub/GitLab中,实现远程仓库与本地仓库的连接。同时,还提供了基本的同步代码指令。
6991

被折叠的 条评论
为什么被折叠?



