Re: Line ending normalization doesn't work as expected
- From
- Robert Dailey <rcdailey.lists@gmail.com>
- Date
- Oct 3, 2017, 17:23 UTC
- Message-ID
- <CAHd499AD5Kgbp-vxXTnEPkb-Mb5oEeXhaRO5kGniDdqmXwd2QQ@mail.gmail.com>
- In-Reply-To
- <958c9b03-062c-0bea-3b25-939a36659f32@web.de>
On Tue, Oct 3, 2017 at 11:26 AM, Torsten Bögershausen <tboegi@web.de> wrote:
Show 9 quoted lines
> The short version is, that the instructions on Github are outdated. > This is the official procedure (since 2016, Git v2.12 or so) > But it should work even with older version of Git. > > $ echo "* text=auto" >.gitattributes > $ git read-tree --empty # Clean index, force re-scan of working directory > $ git add . > $ git status # Show files that will be normalized > $ git commit -m "Introduce end-of-line normalization"
Is the way I did it that worked also a valid solution? Or did it only work accidentally? Again the command I ran that worked is:
$ git rm -r --cached . && git add .