diff --git a/src/gitutils/README.md b/src/gitutils/README.md index f0325d78..eb07d956 100644 --- a/src/gitutils/README.md +++ b/src/gitutils/README.md @@ -82,6 +82,7 @@ The following aliases are provided to enhance your Git workflow: - `git isDirty ` - Check if the specified file has uncommitted changes. - `git isFixup` - Check if the last commit is a fixup commit. - `git isRebase` - Check if a rebase is in progress. +- `git pn` - Push without running pre-push hooks. - `git prod` - Finish a release or hotfix branch using Git Flow. - `git recallId ` - Set the Git user name and email to the author of the last commit. - `git renameTag ` - Rename a tag. diff --git a/src/gitutils/alias.json b/src/gitutils/alias.json index 71199e28..d7e1ac17 100644 --- a/src/gitutils/alias.json +++ b/src/gitutils/alias.json @@ -99,6 +99,10 @@ "cmd": "git push --force-with-lease $1", "help": "Push with force-with-lease." }, + "pn": { + "cmd": "git push --no-verify", + "help": "Push without running pre-push hooks." + }, "prod": { "cmd": "git release-prod", "help": "Run release-prod command."