docs: use specific git add
command to avoid adding unnecessary files
#20136
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Today when releasing v9 and v10, I found two extra files in Git (
.husky/
and.ng-dev.log
). These are a part of the toolchain in later versions, but not known ignored in older versions. Usinggit commit -a
would have included both of those files in the release commit which would not be desirable. Instead, the solution for releases is to add the specific files that are modified to remove this possibility.I'll do a separate PR to back-port the
.gitignore
updates to those branches and start a broader discussion about how we should manage.gitignore
for LTS branches.cc @kyliau @josephperrott for visibility to other caretakers.