Skip to content

Instantly share code, notes, and snippets.

@Simounet
Last active September 30, 2015 22:47
Show Gist options
  • Save Simounet/1874941 to your computer and use it in GitHub Desktop.
Save Simounet/1874941 to your computer and use it in GitHub Desktop.
my.git
# Prompt
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\[\033[01;34m\]$(__git_ps1 "(%s)")\[\033[00m\]\$ '
git config apply.whitespace=fix
git config apply.ignorewhitespace on
# ~/.gitconfig
[core]
editor = vim
[alias]
ci = commit
co = checkout
br = branch
st = status
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
sup = submodule update
lu = ls-files --other --exclude-standard
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment