-
Notifications
You must be signed in to change notification settings - Fork 60.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change to git add renormalize command after changing line endings #35841
Conversation
Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
@mems Thanks so much for opening a PR! I'll get this triaged for review ✨ |
Thanks for opening a pull request! We've triaged this issue for technical review by a subject matter expert 👀 |
@mems Thanks so much for opening a PR with this fix! I'll update the branch and get this merged once tests are passing 🍏 |
Automatically generated comment ℹ️This comment is automatically generated and will be overwritten every time changes are committed to this branch. The table contains an overview of files in the Content directory changesYou may find it useful to copy this table into the pull request summary. There you can edit it to share links to important articles or changes and to give a high-level overview of how the changes in your pull request support the overall goals of the pull request.
fpt: Free, Pro, Team |
Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues ⚡ |
Why:
I follow the instructions of "Refreshing a repository after changing line endings", but after normalize all files in a repo, some files still unnormalized (when I switch branches or merge, these "fantom-changes-that-can't-be-undo" appears).
After few search on the web, I found the mentioned command (
git rm -rf --cached . ; git reset --hard HEAD
) aren't recommended in git doc, butgit add --renormalize .
is since git 2.16 ("a new and safer way to record the fact that you are correcting the end-of-line convention").Before it was use different command combinations:
What's being changed (if available, include any code snippets, screenshots, or gifs):
Change the snippet to use the command that normalize all files
Check off the following: