
git
Jane_96
谁说妹子不可以写代码的
展开
-
git报错fatal:I don't handle protocol 'https'的解决办法
在使用git clone从远程仓库里面项目clone到本地时,报错:fatal:I don’t handle protocol ‘https’解决方案:将clone的那句话,例如$ git clone https://git.coding.net/Sugar/pro.git里面https的空格都删掉,再用空格键补全,然后回车就可以了。 ...原创 2017-12-02 15:42:43 · 10941 阅读 · 0 评论 -
git 修改远程仓库的地址
方法一:直接修改git remote set-url origin git@192.168.0.5:project/demo.git方法二:先删除现有的,再修改git remote rm origin git remote add origin git@192.168.0.5:project/demo.git...原创 2018-10-10 15:07:24 · 502 阅读 · 0 评论 -
查看ssh key
查看本地是否有SSH Key存在$ ls -al ~/.sshtotal 25drwxr-xr-x 1 qqq 197121 0 一月 19 2018 ./drwxr-xr-x 1 qqq197121 0 十一 20 20:42 ../-rw-r--r-- 1 qqq 197121 1675 十月 12 09:29 id_rsa-rw-r--r-- 1 qqq 197...原创 2018-11-23 10:24:11 · 2744 阅读 · 1 评论 -
git commit之后自动对代码检查,导致commit报错
报错原因项目中使用了husky,并且配置了"precommit": "npm run lint"。因此会在你git commit的时候执行npm run lint 也就是eslint --ext .js src test。GIT_DIR/hooks/pre-commit :这个钩子被 git commit 命令调用, 而且可以通过在命令中添加--no-verify 参数来跳过。这个钩子不需要参...原创 2019-07-06 17:12:11 · 8797 阅读 · 0 评论