关于git push报hook declined
![remote rejected] xxx -> xxxx (hook declined)error: failed to push some refs to 'http:xxxxx'最初查询网络上的处理方法,有:修改git的etc的hosts文件的,建立分支后再提交的。。。。诸如此类,均无效,最后,本人的处理方法为:删除要提交的项目中的 .git文件夹,重新init,再次重复提交流程gi
·
![remote rejected] xxx -> xxxx (hook declined)
error: failed to push some refs to 'http:xxxxx'
最初查询网络上的处理方法,有:修改git的etc的hosts文件的,建立分支后再提交的。。。。
诸如此类,均无效,最后,本人的处理方法为:
删除要提交的项目中的 .git 文件夹,重新init,再次重复提交流程
git init
git add .
git commit -m #comment
git push
# 若没有直接提交,可按照系统提示的操作命令进行push操作
更多推荐
已为社区贡献1条内容
所有评论(0)