Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mems
Copy link

@mems mems commented Jan 6, 2025

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, but git 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:

  • A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require a SME review from GitHub staff.
  • The changes in this PR meet the docs fundamentals that are required for all content.
  • All CI checks are passing.

Copy link

welcome bot commented Jan 6, 2025

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.

@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Jan 6, 2025
@nguyenalex836 nguyenalex836 added content This issue or pull request belongs to the Docs Content team waiting for review Issue/PR is waiting for a writer's review get started Content related to "Getting Started" doc set and removed triage Do not begin working on this issue until triaged by the team labels Jan 6, 2025
@nguyenalex836
Copy link
Contributor

@mems Thanks so much for opening a PR! I'll get this triaged for review ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content This issue or pull request belongs to the Docs Content team get started Content related to "Getting Started" doc set waiting for review Issue/PR is waiting for a writer's review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants