Commands

This dialog shows options influencing Git commands executed by SmartGit.

Use the navigation structure or the search tool to select the required page to view or make changes to a setting.

Note

Some highlighted options require an application restart to be applied.

Commands

Commit

Show line length guides (only useful for monospaced-font) displays guides in the commit message editor.

Remove leading and trailing whitespace from commit message trims whitespace from the beginning and end of the whole message.

Comments in Message offers these choices:

  • Use message as-is (don’t strip comments) keeps comment lines.
  • Ask if potential comments are detected lets you choose when comment lines are found.
  • Strip comments (lines starting with ‘core.commentChar’) removes comment lines before committing.

Comment lines use the character configured by Git’s core.commentChar setting.

Push

Allow modifying pushed commits (e.g. forced-push) permits operations that rewrite published history. When enabled, choose the branches to which it applies:

  • Only for feature branches restricts rewriting to feature branches.
  • For all branches also permits rewriting other branches.

A feature branch holds work on a particular change until it is integrated into a shared mainline. SmartGit identifies these branches using the repository’s development-process configuration:

  • In the Standard Window’s Feature-Flow, feature branches match Feature Prefix and are separate from the configured trunk branches. With an empty prefix, all non-trunk branches count as feature branches.
  • In Git-Flow and Git-Flow Light, feature branches match the configured feature prefix, such as feature/.

Only select the Allow modifying pushed commits (e.g. forced-push) if you are sure you know Git well enough to understand the consequences of features such as forced push.

Push all tags includes local tags when pushing, including through Synchronize.

Refresh

Refresh settings control how SmartGit detects changes in your working tree.

Detect renames (for added and removed files, as command line Git does) matches added and removed file pairs as renames. When it is enabled, two further options are available:

  • Also detect renames for untracked and missing files extends detection to files that have not yet been staged.
  • Warn for slow rename detection reports when rename detection takes too long.

Refresh file system also while SmartGit is in background keeps the working-tree display up to date while another application has focus.

Clone

Credential-helper options for new clones are on the Git Executable card. See SmartGit as Credential Helper for setup and how command-line Git uses SmartGit’s credentials.

Checkout

Warn about submodule configuration changes (.gitmodules) asks for confirmation before checking out a branch or commit whose .gitmodules differs from the current commit. This check applies when recursive submodule handling (submodule.recurse) is enabled. For example, the target branch may use a different submodule layout.

Warning

Switching between submodule layouts can overwrite ignored or untracked files. For a major layout change, consider cloning the target branch into a separate directory.