Skip to content

Commit f8b20d1

Browse files
memsnguyenalex836
andauthored
Change to git add renormalize command after changing line endings (#35841)
Co-authored-by: Alex Nguyen <150945400+nguyenalex836@users.noreply.github.com>
1 parent 3890404 commit f8b20d1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

content/get-started/getting-started-with-git/configuring-git-to-handle-line-endings.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,10 @@ To ensure that all the line endings in your repository match your new configurat
117117
git commit -m "Saving files before refreshing line endings"
118118
```
119119

120-
1. To update all files on the current branch to reflect the new configuration, run the following commands.
120+
1. To update all files on the current branch to reflect the new configuration, run the following command.
121121

122122
```shell copy
123-
git rm -rf --cached .
124-
git reset --hard HEAD
123+
git add --renormalize .
125124
```
126125

127126
1. To display the rewritten, normalized files, run the following command.

0 commit comments

Comments
 (0)