美文网首页
windows 中 git 下载与配置github

windows 中 git 下载与配置github

作者: Vergil_wj | 来源:发表于2021-07-15 07:03 被阅读0次

下载及安装

git 下载地址:https://git-scm.com/downloads

下载后自定义安装位置,剩下的默认 git 配置,直接安装即可。

安装完成后,打开 cmd:输入 git --version 可查看 git 版本。

配置 github

1、打开 git bash,设置 Git 的 user name 和 email
$ git config --global user.name "yourname"  
$ git config --global user.email "youremail"
2、生成 ssh 秘钥

打开 .ssh 文件:

cd ~/.ssh

生成秘钥:

$ ssh-keygen -t rsa -C “youremail”

按三个回车即可,最后得到了两个文件:id_rsa 和 id_rsa.pub

3、查看秘钥并复制
git bash.png
4、进入 github 添加 ssh-key

进入 github,点击头像位置,选择 settings:

github.png

接下来选择 SSH and GPG keys-> New SSH key:

github.png

填写 title 和 key:

github.png

title 随便写,key 中复制刚才的秘钥即可。

5、使用 github

现在可以正常使用 github 了!

相关文章

  • git

    下载与配置 Windows下载地址https://git-for-windows.github.io/ 配置信息g...

  • React Native搭建(windows)

    ##1.git配置 git 下载地址:https://git-for-windows.github.io/ git...

  • windows 中 git 下载与配置github

    下载及安装 git 下载地址:https://git-scm.com/downloads[https://git-...

  • android studio上传项目到github

    下载git客户端,并且安装 下载地址:https://git-for-windows.github.io/ 配置a...

  • 在 windows 上 安装 git 并配置 ssh 到 git

    在Windows 上安装git ,配置 ssh 到 github 1. 下载 windows x64 的git 安...

  • git的命令

    git的下载地址:https://git-for-windows.github.io/git环境变量配置:增加:G...

  • git配置

    git 步骤 一.Git密钥配置 Github 安装 下载 git Windows 版 创建SSH Key:创建s...

  • git方法

    1、git安装 下载地址:https://git-for-windows.github.io 2、配置个人信息(名...

  • git - 简易指南

    一、安装与配置 下载git OSX版 下载git Windows版 下载git Linux版 安装完成后需要配置环...

  • Git 学习笔记

    安装Git(Windows) 从https://git-for-windows.github.io下载git进行安...

网友评论

      本文标题:windows 中 git 下载与配置github

      本文链接:https://www.haomeiwen.com/subject/oqoepltx.html