Git安装及配置

208 阅读1分钟

Git安装:

  1. 下载git.exe
  2. 配置(先github注册账户或使用公司自建git服务)

用户名:git config --global user.name "username" //( "username"是自己的账户名,)

邮箱:git config --global user.email "username@email.com" //("username@email.com"注册账号时用的邮箱)

  1. 生成ssh:cmd窗口执行:ssh-keygen -t rsa,三次回车键。 查看:C:\Users\你的用户名.ssh
  2. 将ssh文件夹中的公钥( id_rsa.pub)添加到GitHub管理平台(gerrit)中