Skip to content

Commit

Permalink
docs: use specific git add command to avoid adding unnecessary files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dgp1130 authored and clydin committed Feb 25, 2021
1 parent f127136 commit 072abbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/process/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```

Expand Down

0 comments on commit 072abbe

Please sign in to comment.