From e7077f3618a20e3cacba3bdbc14b23ee37b2700e Mon Sep 17 00:00:00 2001 From: Memmie Lenglet Date: Mon, 6 Jan 2025 17:39:12 +0100 Subject: [PATCH] Change the command to git add renormalize --- .../configuring-git-to-handle-line-endings.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/get-started/getting-started-with-git/configuring-git-to-handle-line-endings.md b/content/get-started/getting-started-with-git/configuring-git-to-handle-line-endings.md index 5a46547226dc..94e3760f6544 100644 --- a/content/get-started/getting-started-with-git/configuring-git-to-handle-line-endings.md +++ b/content/get-started/getting-started-with-git/configuring-git-to-handle-line-endings.md @@ -117,11 +117,10 @@ To ensure that all the line endings in your repository match your new configurat git commit -m "Saving files before refreshing line endings" ``` -1. To update all files on the current branch to reflect the new configuration, run the following commands. +1. To update all files on the current branch to reflect the new configuration, run the following command. ```shell copy - git rm -rf --cached . - git reset --hard HEAD + git add --renormalize . ``` 1. To display the rewritten, normalized files, run the following command.