Windows下安装GitHub
1.去官网下载软件 访问:https://git-for-windows.github.io/
我下载的是Git-2.14.1-64-bit版本
2.安装,双击运行,按照向导一步步安装即可
组件的选择
环境变量的设置,选第一个,这个地方要改
换行符的处理
Git Bash
运行画面
初始设置
设置姓名和邮箱地址
提高命令输出的可读性
打开gitconfig文件
接下来,准备去GitHub注册一个账户,结果发现........
这篇没法写了,大家最近有没有比较好的稳定的FQ办法呢???
翻过去了,我再接着写吧。
安好了,想知道怎么FQ的同学请查看我的另外一个博客,chrome配置实现免费FQ
按照提示,我在GitHub官网注册了一个账户
下面接着之前的讲
设置SSH Key
放大看,是下面的图
小嘤嘤@XYY MINGW64 ~ $ ssh-keygen -t rsa -C "839417803@qq.com" Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/小嘤嘤/.ssh/id_rsa):按回车 Created directory '/c/Users/小嘤嘤/.ssh'. Enter passphrase (empty for no passphrase):密码 Enter same passphrase again:密码
输出结果是
Your identification has been saved in /c/Users/小嘤嘤/.ssh/id_rsa. Your public key has been saved in /c/Users/小嘤嘤/.ssh/id_rsa.pub. The key fingerprint is: SHA256:4fIjcCrHHk2uQS/T31fq3FEAO5WGsxsfYC9dK/2EFAc 839417803@qq.com The key's randomart image is: +---[RSA 2048]----+ | ..E+.| | =++..| | . .oOoo.| | . . +o=+.| | o + S =.oo| | o X o . o..| | . O * o o. | | + * o o .o. . | | o . .oo . | +----[SHA256]-----+
添加公开密钥
点击new SSH key
名字title自己取
密码key获取方式,输入
$ cat ~/.ssh/id_rsa.pub
复制输出的所有内容到key框里面
完成以上设置后,就可以用手中的私人密匙与GitHub进行认证和通信了
小嘤嘤@XYY MINGW64 ~
$ ssh -T git@github.com
Warning: Permanently added the RSA host key for IP address '192.30.255.113' to the list of known hosts.
Enter passphrase for key '/c/Users/小嘤嘤/.ssh/id_rsa':账户密码
Hi tori22! You've successfully authenticated, but GitHub does not provide shell access.