I don't want to convert newline code in GitHub Desktop for Windows

Asked 2 years ago, Updated 2 years ago, 108 views

I am using GitHub Desktop for Windows.

Are there any settings that do not convert newline codes?

Is it possible to return the changed line feed code?
(I'm giving up because of all the articles that say I can't...)

windows git github-desktop

2022-09-30 21:46

1 Answers

Yes, you can set core.autocrlf.

 git config --global core.autocrlf false

This setting can be true/input/false.

Note: Customizing 8.1 Git - Git Configuration (core.autocrlf is described below)

It depends on when the new line code changed.

If it changed when gitclone, you can change the settings, delete them all once, and do gitclone again.

If it changed at the time of commitment, it would be better to rewind the commit with git revert after changing the setting.


2022-09-30 21:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.