Skip to content

Commit

Permalink
Add example for setting multiple git.pushArgs on the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Aug 22, 2020
1 parent f22e71c commit 0332981
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/git.md
Expand Up @@ -50,7 +50,12 @@ In case extra arguments should be provided to Git, these options are available:
For example, use `"git.commitArgs": ["-S"]` to sign commits (also see
[#35](https://github.com/release-it/release-it/issues/350)).

Note that `["--follow-tags"]` is the default for `pushArgs`, so add this to the custom array of arguments.
Note that `["--follow-tags"]` is the default for `pushArgs` (re-add this manually if necessary). Example with multiple
arguments for `git push`:

```bash
release-it minor --git.pushArgs=--follow-tags --git.pushArgs=--force
```

## Skip Git steps

Expand Down

0 comments on commit 0332981

Please sign in to comment.