我是 Git 新手。我分叉了一个 repo,创建了一个分支,进行了一些更改,提交了,然后当我推送(git push origin master)时,我收到以下错误:
Starting Pattern Checks
.gitattributes --> Please make sure all files only have LF endings (no CRLF).
core/templates/dev/head/dashboard/notifications_dashboard.html --> Please use spaces instead of tabs.
(41 files checked, 2 errors found)
FAILED Pattern checks failed
Push failed, please correct the linting issues above
我在 Windows 7 上运行 git。谁能帮帮我?谢谢。
更新:“请使用空格而不是制表符。” 通过在 Notepad++ 的“编辑->空白操作->制表符到空格”中将制表符转换为空格来纠正错误。