报错内容:
This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.
解决方法:
rm -rf .git/hooks/pre-push
总结:问题直接,答案粗暴。希望对看到的你有用。==^^===
====================update===================
问题1:
git push failed [remote rejected] master -> master (pre-receive hook declined)
解决:
1、git log 查看提交日志commit id
2、git reset commit id
3、根据git status 的提示进行操作,就可一路顺畅啦。
以上可能是最快的方法^^
问题2: 仓库添加.gitignore文件提交后不起作用
解决:
git rm -r --cached .
git add .
git commit -m 'update .gitignore