
github
Joy CR
欢迎关注我的公众号: 小秋的博客
https://blog.youkuaiyun.com/xiaoqiu_cr
https://github.com/crr121
https://segmentfault.com/u/chenrong_flying
联系邮箱:rongchen633@gmail.com
展开
-
git多账号配置
什么叫多账号配置,也就是说假如你在公司用的gitlab服务器,但是自己还有用到GitHub,那么此时你在本地就需要配置多个ssh-key 步骤如下: 利用ssh-keygen -t rsa -f github_id_rsa 生成一个github的秘钥,并且名称为github_id_rsa,-f 的意思是指定生成的秘钥的名称 最后生成这样的秘钥对 然后添加一个config文件 Host ...原创 2019-12-01 22:44:48 · 304 阅读 · 0 评论 -
github使用笔记
撤销文件的修改 1. 对于工作区还没添加 git add test.txt到stage(暂存区)的文件可以通过git checkout – test.txt 进行回滚 2. 如果已经添加到缓存区了,只有通过git reset HEAD – test.txt 进行回滚 然后查看git status 可以看到缓存区干净了 3. 如果已经通过git commit -m”提交” 提交到仓库原创 2017-08-13 11:27:27 · 250 阅读 · 0 评论 -
idea从github克隆代码"clone failed could not read from remote repository"
我所做的: 在本地生成公钥和私钥,然后将公钥复制到github中的ssh keys $ ssh-keygen -t rsa -C "username"#the username is the account of your github $ cat ~/.ssh/id_rsa.pub 然后将idea中的git 里面的SSH executable 设置为native 但是还是没用 ...原创 2018-08-23 11:57:36 · 2449 阅读 · 0 评论 -
GitHub添加大文件
文章目录GitHub中如何添加大文件下载工具LFS初始化 GitHub中如何添加大文件 下载工具LFS 下载地址:https://git-lfs.github.com/ 点击安装exe 初始化 这样就完成了 ...原创 2019-08-11 21:51:56 · 560 阅读 · 3 评论