Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在 Git for Windows 上强制使用 LF 代替 CRLF #34

Open
CyanSalt opened this issue Aug 23, 2021 · 0 comments
Open

在 Git for Windows 上强制使用 LF 代替 CRLF #34

CyanSalt opened this issue Aug 23, 2021 · 0 comments

Comments

@CyanSalt
Copy link
Owner

CyanSalt commented Aug 23, 2021


path: enforce-lf-on-git-for-windows


# .gitconfig
[core]
    eol = lf
    autocrlf = input

或者是执行

git config --global core.eol lf
git config --global core.autocrlf input

如需刷新项目,可以执行:

git rm -rf --cached .
git reset --hard HEAD
@CyanSalt CyanSalt transferred this issue from another repository Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant