- 问题一:
- commit 提交时出现“error: pathspec 'xxxx'' did not match any file(s) known to git.”的报错消息如何解决
git commit -m 'zfjsec.com'
报错 error: pathspec 'zfjsec.com'' did not match any file(s) known to git.
解决办法:只需要把单引号变成双引号即可
git commit -m "zfjsec.com"
- 问题二
GitPush的时候报错:Git: push 出错的解决 master -> master (branch is currently checked out)
这是git默认拒绝了push操作 修改一下.git/config即可
在git服务器上修改添加
[receive]
denyCurrentBranch = ignore
还有一种就是在初始化远程仓库时最好使用 git --bare init 而不要使用:git init
原创文章,作者:纸飞机,如若转载,请注明出处:https://www.zfjsec.com/724.html