Skip to content

Commit 072abbe

Browse files
dgp1130clydin
authored andcommitted
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.
1 parent f127136 commit 072abbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/process/release.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ Update the package versions to reflect the new release version in **both**:
7070
1. [`packages/schematics/angular/utility/latest-versions.ts`](https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/utility/latest-versions.ts)
7171

7272
```bash
73-
git commit -a -m 'release: vXX'
73+
git add package.json packages/schematics/angular/utility/latest-versions.ts
74+
git commit -m 'release: vXX'
7475
git tag -a 'vXX' -m 'release: tag vXX'
7576
```
7677

0 commit comments

Comments
 (0)