Skip to content

Commit 2afd688

Browse files
Fix bad git-min alias resolves tag permanently
With the `gtg-min` alias, using double-quotes calls git-semver immediately and encodes the current tag permanently in the alias. Then, every time you call the alias, it uses the same tag and fails with `fatal: tag 'x.y.z' already exists`. We change it to single quotes so that the subcommand is not resolved at definition and calling the alias will generate a new tag every time. Fixes #43
1 parent 17c6da6 commit 2afd688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
```
2525
or create an alias
2626
```bash
27-
alias gtg-min="git tag -s -a $(git-semver -target minor)"
27+
alias gtg-min='git tag -s -a $(git-semver -target minor)'
2828
```
2929

3030
## Why is this useful?

0 commit comments

Comments
 (0)