11 Git Options

BashStyle-NG Git Settings

Figure 11.1: Git Settings

Setting: use_gitcfg Configurate Git

This master switch will make BashStyle-NG adjust the Settings for Git

Setting: git_user_name Git user name

Sets the user’s name via git config --global user.name

Setting: git_user_mail Git mail adress

Sets the user’s mail adress via git config --global user.email

Setting: git_editor Editor for Git

Sets the editor for Git commands (like git commit -m) via git config --global core.editor

Setting: git_signkey Default Git signing key

Sets the default signingkey via git config --global user.signingkey

Setting: git_color Colorize Git output

Colorize the output of Git, via git config --global color.\$opt, where opt is set for each:

  • branch
  • diff
  • interactive
  • pager
  • status
Setting: git_aliases Git aliases

This sets a few aliases for Git commands, some from the early times of Git to ease transistion from Subversion, some more complex:

  • co = checkout
  • up = pull
  • re = reset --hard HEAD
  • ma = checkout master
  • who = shortlog -s --
  • ci = commit
  • ls = log --format='%Cgreen%H %Cred%ai %Creset- %s'
  • lsb = for-each-ref --sort=-committerdate --format='%1B[32m%(committerdate:iso8601) %1B[34m%(committerdate:relative) %1B[0;m%(refname:short)' refs/remotes refs/heads
  • stage = add -u
Setting: git_ssh_remember Remember SSH key

Make Git remember the SSH key for actions like pull, push. Note: This is only used/active. when using gitkit.

Setting: git_ssh_timeout Time to remember

How long to rember the SSH key, in seconds. Note: This is only used/active. when using gitkit.

Setting: git_ssh_keyfile SSH RSA Keyfile

What key to use for signing, empty for default. if you use a Yubikey, you can leave empty or explicitely set to yubikey in order to prevent gitkit ssh-add the signing key, when Git would access the Yubikey. Note: This is only used/active. when using gitkit.