docs: use specific git add command to avoid adding unnecessary files

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. Using `git 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.
This commit is contained in:
Douglas Parker 2021-02-24 12:16:52 -08:00 committed by Charles
parent f127136033
commit 072abbe44b

View File

@ -70,7 +70,8 @@ Update the package versions to reflect the new release version in **both**:
1. [`packages/schematics/angular/utility/latest-versions.ts`](https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/utility/latest-versions.ts)
```bash
git commit -a -m 'release: vXX'
git add package.json packages/schematics/angular/utility/latest-versions.ts
git commit -m 'release: vXX'
git tag -a 'vXX' -m 'release: tag vXX'
```