Page MenuHomePhabricator
Paste P17438

Command-Line Input
ActivePublic

Authored by Eevans on Thu, Oct 7, 7:28 PM.
#!/bin/sh
set -ex
EMAIL=${EMAIL:-eevans@sym-link.com}
git config --global user.name "Eric Evans"
git config --global user.email "$EMAIL"
# Aliases
git config --global alias.st status
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.br branch
git config --global alias.lg log "--graph --abbrev-commit --decorate --format format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
# Disable silly `a/` & `b/` path mangling
git config --global diff.noprefix true
# Colors
git config --global color.diff auto
git config --global color.branch auto
git config --global color.status auto
git config --global color.new cyan
git config --global color.old magenta
git config --global color.frag yellow
git config --global color.meta green
git config --global color.commit normal