Skip to content

Instantly share code, notes, and snippets.

@iniyanmurugavel
Last active January 22, 2021 11:03
Show Gist options
  • Save iniyanmurugavel/1740cfa0605c598980c9316c60faa8a0 to your computer and use it in GitHub Desktop.
Save iniyanmurugavel/1740cfa0605c598980c9316c60faa8a0 to your computer and use it in GitHub Desktop.
warning: CRLF will be replaced by LF in gradlew.bat
In Unix systems the end of a line is represented with a line feed (LF). In windows a line is represented with a carriage return (CR) and a line feed (LF) thus (CRLF). when you get code from git that was uploaded from a unix system they will only have an LF.
If you are a single developer working on a windows machine, and you don't care that git automatically replaces LFs to CRLFs, you can turn this warning off by typing the following in the git command line
git config core.autocrlf true
rm -f ./.git/index.lock
In your repository directory. The error message is rather explicit as to what causes it typically,
so if you have no other git processes running (which is the normal case), go ahead and delete that file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment