mac 从git拉取代码

444 阅读1分钟
  1. 终端输入git --version 检查电脑是否装有git,有下一步,没有安装git
  2. 设置username email
  3. git config --global user.name 你的名字 回车
  4. git config --global user.email 你的邮箱 回车
  5. 创建ssh key: ssh-keygen -t rsa -C "你的邮箱" 回车
  6. 查询key: cat .ssh/id_rsa.pub 回车
  7. 打开git 点击用户头像 点击settings 新建key 粘贴设置好查询到的key

image.png

image.png 8. git clone 拉取代码