![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
文章平均质量分 80
四月笈
纵有疾风起. The cross-set of interest and living will not fail to be pursued.
展开
-
让git和github关联起来,两者是通过ssh连接的,安全又快速
1、默认在这里查找你的公钥和密钥(若你没有指定特定路径) C:\Users\\{username}\ .ssh 2、id_rsa是你的私有密钥,id_rsa.pub是公钥,打开文本复制里面的内容,复制到你的github账户setting的ssh 3、测试ssh key是否成功: 使用命令“ssh -T git@github.com”,如果出现You’ve successfully authenticated, but GitHub does not provide shell access 。这..原创 2021-11-11 15:55:42 · 947 阅读 · 0 评论 -
理解暂存区 和 $git diff
理解暂存区 和 $git diff 1.暂存区是一个中转站的作用 2.为什么说Git跟踪的是文件的修改而不是文件呢? 3. 缓存区↔ \leftrightarrow↔库(HEAD):$ git diff--cached 工作区↔ \leftrightarrow↔缓存区:$ git diff 工作区↔ \leftrightarrow↔库(HEAD):$ git diffHEAD -- filename 库↔ \leftrightarrow...原创 2021-10-21 10:40:31 · 60 阅读 · 0 评论