Skip to content

Instantly share code, notes, and snippets.

@gmgp
Created February 7, 2015 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmgp/3748ff9898f35174b7ed to your computer and use it in GitHub Desktop.
Save gmgp/3748ff9898f35174b7ed to your computer and use it in GitHub Desktop.
base git config creation
touch ~/.gitconfig
cat >~/.gitconfig << EOL
[color]
diff = auto
status = auto
branch = auto
ui = true
[color "status"]
changed = yellow
added = green
untracked = red
[alias]
st = status
ci = commit
br = branch
co = checkout
s = status -s
mylog = log --graph --pretty=format:'%h %s [%an]'
lg = log --graph --oneline --decorate --all
lol = log --graph --oneline --decorate --abbrev-commit --all
EOL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment