When installing Git on windows machine, we usually press the "next" button rapidly that we are not aware that we are telling the Git to add automated "crlf" or "lf" to each line of the checked-out source code. The symptom such as :
- Always shows modified files even if we are not changing a particular file
- Even after revert or a hard --reset the modified files is showing
To remedy the situation use the following command in sequence:
- git config --global core.autocrlf false
- git reset --hard
- git status
The list of modified files which we are not modify should be gone now.
Cheers! ;)
Tidak ada komentar:
Posting Komentar