![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
CherryCola_zjl
enjoy it
展开
-
.gitignore规则以及不生效的解决办法
规则规则效果/node_modules‘ / ’ 代表根目录的文件夹node_modules/*包含根目录/node_modules/ 以及子目录 /child/node_modules/!/node_modules/doc.txt‘ ! ’ 代表不忽略,即文件夹被忽略,还是可以指定里面的文件上传*.zip过滤所有zip后缀的文件/pages/index.html过滤具体文件**/node_modules** 代表无论前面多少层级g.原创 2021-01-04 11:59:19 · 467 阅读 · 0 评论 -
Mac使用SSH链接github
打开终端创建$ ssh-keygen -t rsa -C "youremail@qq.com"成功后会生成randomart image 。这类似一个棋盘,先将 ssh密码转为二进制,然后从中心点根据一定规律斜向挑格子,感兴趣的可以搜一下。查看ssh并把秘钥复制出来查看cat .ssh/id_rsa.pub![![查看ssh密钥](https://img-blog.csdnimg.cn/20201124171313351.png#pic_cente](https://img-blog.c原创 2020-11-24 17:30:49 · 361 阅读 · 0 评论 -
解决git: Authentication failed for
Authentication failed身份验证失败,大概率账户失效或者密码错误push的时候遇到这个问题,需要重新配置账号密码cmd界面执行语句,重置账号密码git config --system --unset credential.helper执行时可能会遇到报错git error: could not lock config file C:/Program Files/Git/etc/gitconfig: Permission denie原因是系统文件权限不够,无法操作文件。只需找到原创 2020-10-12 16:57:20 · 527 阅读 · 0 评论 -
github怎么设置ssh
先在git bush里输入,检查是否有配置ssh~/.sshis a directory说明有这个目录,已经配置成功。如果没设置,输入:ssh-keygen -t rsa -C "yourEmail@666.com"接下来设置密码,可以不设置直接回车设置成功后,去 C:\Users\用户名.ssh 找到,id_rsa.pub 文件。用记事本打开,里面就是你的ssh key。然后...原创 2020-04-16 16:19:19 · 310 阅读 · 0 评论 -
git教程
git本地操作创建文件不丢失记录历史随时回退自动合并,但也需要手动合并拥有强大的‘分支’分布式svn(集中式)需要一台中央服务器git(分布式)每人都有完成的版本git速度快一个.git文件(点开头隐藏文件)配置用户(不配置用户不能提交)查看配置git config --listgit config --global user.name "...原创 2018-03-06 11:06:22 · 359 阅读 · 0 评论 -
win10 git bash闪退问题
git bash闪退或者运行git指令也会报如下错fatal:open /dev/null or dup failed: No such file or directory解决方法:C:\Windows\System32\drivers\null.sys 文件损坏导致的,下载一个新的null.sys替换掉自己的。然后管理员运行cmd,输入sc start null ...转载 2018-08-31 13:33:56 · 2837 阅读 · 0 评论