![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
ZNineSun
大道至简,返璞归真
展开
-
解决Git使用出现git@githubcom Permission denied (publickey)
当我们克隆某个项目,或者安装依赖时出现:1.查看是否与github上的配置一致git config --global --list2.设置全局用户名和邮箱git config --global user.name "你的用户名"git config --global user.email "你的邮箱"注意:这里得名字和邮箱都是注册github时用的3.生成密钥ssh-keygen -t rsa -C "你的邮箱"一路回车,在出现选择时输入Y,再一路回车直到生成密钥密钥地址如下原创 2021-08-12 13:36:46 · 1128 阅读 · 0 评论 -
解决git提交失败并提示Another git process seems to be running in this
我们在git提交时若出现Another git process semms to be running in this repository, e.g. an editor opened by ‘git commit’. Please make sure all processes are terminated then try again. If it still fails, a git process remove the file manually to continue…这种问题是由于Git在原创 2021-08-10 22:34:57 · 400 阅读 · 0 评论 -
解决git提交代码报错pre-commit hook failed
当我们提交代码提示husky > pre-commit hook failed (add --no-verify to bypass)时,是由于pre-commit(客户端)它会在Git键入提交信息前运行做代码风格检查。如果代码不符合相应规则,则报错。导致无法提交,解决方案如下:1.进入项目文件夹/.git/hooks文件夹下2.删除pre-commit文件...原创 2021-05-25 17:32:00 · 1694 阅读 · 1 评论