Repository navigation
Reference: git flow hotfix
Lists all local hotfix branches
git flow hotfix [list] [-h] [-v]
-h,--[no]help
show this help
-v,--[no]verbose
verbose (more) output
Start new hotfix branch named <version>, optionally base it on <base> instead of the <master> branch
git flow hotfix start [-h] [-F] <version> [<base>]
-h,--[no]help
show this help
--showcommands
Show git commands while executing them
-F,--[no]fetch
fetch from origin before performing finish
Finish hotfix branch <version>
git flow hotfix finish [-h] [-F] [-s] [-u] [-m | -f ] [-p] [-k] [-n] [-b] [-9] <version>
-h,--[no]help
show this help
--showcommands
Show git commands while executing them
-F,--[no]fetch
fetch from origin before performing finish
-s,--[no]sign
sign the release tag cryptographically
-u,--signingkey
use the given GPG-key for the digital signature (implies -s)
-m,--message
use the given tag message
NOTE: to enter a multi-line tag message the format needs to be "$(printf 'message text with \n as needed for formating')"
-f,--messagefile
use the contents of the given file as tag message
-p,--[no]push
push to origin after performing finish
-k,--[no]keep
keep branch after performing finish
--[no]keepremote
keep the remote branch
--[no]keeplocal
keep the local branch
-n,--[no]notag
don't tag this release
-T,--tagname
Use given tag name
-b,--[no]nobackmerge
don't back-merge master, or tag if applicable, in develop
-9,--[no]create-release
Create a GitHub/GitLab release after finishing (LBEM Edition)
When --create-release is specified, the command will:
- Complete the standard hotfix finish (merge, tag, etc.)
- Push the tag to origin (required for release creation)
- Create a GitHub/GitLab release using the CLI tool:
- GitHub: uses
gh release create - GitLab: uses
glab release create
- GitHub: uses
The release notes are auto-generated from commits since the last tag.
-
gitflow.hotfix.finish.create-release- Set totrueto create releases by default
Start sharing hotfix <name> on $ORIGIN
git flow hotfix publish [-h] <name>
-h,--[no]help
show this help
--showcommands Show git commands while executing them
Deletes a given hotfix branch
git flow hotfix delete [-h] [-f] [-r] <name>
-h,--[no]help
show this help
--showcommands Show git commands while executing them
-f,--[no]force
force deletion
-r,--[no]remote
delete remote branch
Rebase <name> on <base_branch>
git flow feature rebase [-h] [-i] [-p] [<name|nameprefix>]
-h,--[no]help
show this help
--showcommands
Show git commands while executing them
-i,--[no]interactive
do an interactive rebase
-p, --[no]preserve-merges
preserve merges
Rename branch <name> to <new_name>
git flow hotfix rename [-h] <new_name> [<name>]
-h,--[no]help
show this help
--showcommands
Show git commands while executing them
Synchronize hotfix branch <name> with the production branch. This command fetches updates from origin and updates the hotfix branch with any changes from the production branch.
git flow hotfix sync [-h] [<name|nameprefix>]
-h,--[no]help
show this help
--showcommands
Show git commands while executing them
- Stashes any uncommitted changes
- Fetches updates from origin
- Updates the production branch (e.g., main/master) with remote changes
- Merges production branch into hotfix branch (if there are changes)
- Restores stashed changes
This is useful when multiple hotfixes are in progress and one has been merged to production.