Delete tracking branch
Some forges like
GitHub
and
GitLab
can delete the tracking branch when shipping via their API. In this case the
tracking branch is already gone when git town ship tries to delete it,
resulting in an error. To prevent this error, set this setting to false so
that Git Town does not try to delete the tracking branch.
in config file
ship.delete-tracking-branch = true
or
[ship]
delete-tracking-branch = true
in Git metadata
To configure this setting in Git, run this command:
git config [--global] git-town.ship-delete-tracking-branch <true|false>
The optional --global flag applies this setting to all Git repositories on
your machine. Without it, the setting applies only to the current repository.
environment variable
You can configure whether ship deletes the tracking branch by setting the
GIT_TOWN_SHIP_DELETE_TRACKING_BRANCH environment variable.