git问题-

1.报错--fatal: remote origin already exists.(报错远程起源已经存在。)

git remote add origin************** ,设置远程仓库地址时报错,搜了一下解决办法如下:

1、先输入 git remote rm origin
2、再输入 git remote add origin**************

2.git commit 时报错--pre-commit hook faild (add --no-verify to bypass)

输入git commit 提交代码时,pre-commit(客户端)钩子,会在git键入提交信息前运行坐代码风格检查,如果代码不符合相应规则,则报错

解决办法:①删除pre-commit钩子

                  ②在 git commit -m '' 命令中添加 --no-verif参数来跳过

git commit -m '230515代码更新' --no-verify

猜你喜欢

转载自blog.csdn.net/weixin_65969505/article/details/130863475