Skip to content

Commit

Permalink
fix: fix git tag alias configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
leoliu0605 committed Feb 15, 2024
1 parent 16de6a3 commit 2b751ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ const fs = require('fs');

// Git tag alias configuration
if (os === 'win32') {
await cmd('git config --global alias.tg "!gtg() { git tag -a "$1" -m "$1" ;}; gtg"');
await cmd("git config --global alias.tg \"!gtg() { git tag -a '$1' -m '$1' ;}; gtg\"");
} else {
await cmd('git config --global alias.tg \'!\'"gtg() { git tag -a "$1" -m "$1" ;}; gtg"');
await cmd("git config --global alias.tg '!'\"gtg() { git tag -a '$1' -m '$1' ;}; gtg\"");
}

// TortoiseGit log alias configuration for Windows
Expand Down

0 comments on commit 2b751ae

Please sign in to comment.