From 072abbe44b5abc45987fe4e92b9a2b44c5356519 Mon Sep 17 00:00:00 2001 From: Douglas Parker Date: Wed, 24 Feb 2021 12:16:52 -0800 Subject: [PATCH] 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. --- docs/process/release.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/process/release.md b/docs/process/release.md index 3a87f9e2040c..4fe51c332b1f 100644 --- a/docs/process/release.md +++ b/docs/process/release.md @@ -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' ```