Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

push-branches

This setting determines whether Git Town pushes local branches and commits to the development remote.

config file

[sync] push-branches = true

Git metadata

To configure whether branches get pushed manually in Git, run this command:

git config [--global] git-town.push-branches <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 branches get pushed by setting the GIT_TOWN_PUSH_BRANCHES environment variable.