Commands
Run git town
for an overview of all Git Town commands and
git town help <command>
for help with individual commands. Each Git Town
command can be called like git town <command>
. This user manual displays the
commands in the shorter form available after running
git town alias.
Typical development commands
- git hack - create a new feature branch
- git sync - update the current branch with all ongoing changes
- git new-pull-request - create a new pull request
- git ship - deliver a completed feature branch
Advanced development commands
- git kill - delete a feature branch
- git prune-branches - remove all merged branches
- git rename-branch - rename a branch
- git repo - view the Git repository in the browser
Nested feature branches
- git append - create a new feature branch as a child of the current branch
- git prepend - create a new feature branch between the current branch and its parent
- git town set-parent-branch - change the parent of a feature branch
Git Town configuration
- git town config - display or update your Git Town configuration
- git town new-branch-push-flag - configure whether new empty branches are pushed to origin
- git town main-branch - display/set the main development branch for the current repo
- git town offline - enable/disable offline mode
- git town perennial-branches - display or update the perennial branches for the current repo
- git town pull-branch-strategy - display or set the strategy to update perennial branches
Git Town setup
- git town alias - add or remove shorter aliases for Git Town commands
- git town completion - generate completion scripts for Bash, zsh, fish & PowerShell.
- git town version - display the installed version of Git Town