Skip to content

Instantly share code, notes, and snippets.

@jneptune
Last active August 29, 2015 14:24
Show Gist options
  • Save jneptune/ef19ce88edc1bc63f587 to your computer and use it in GitHub Desktop.
Save jneptune/ef19ce88edc1bc63f587 to your computer and use it in GitHub Desktop.
Git Config File
[core]
editor = vim
safecrlf = false
[user]
name = Joshua Neptune
email = [email protected]
[alias]
ec = config --global -e
co = checkout
cob = checkout -b
s = status -s
last = log -1 HEAD
stage-all = !git add -A && git status -s
unstage = "!f() { git reset -q HEAD $1 && git status -s; }; f"
unstage-all = !git reset -q HEAD && git status -s
ignore = "!f() { echo $1 >> .gitignore; }; f"
log-pretty = log --pretty=format:'%C(red)%h%C(reset) -%C(yellow)%d%C(reset)%s %C(green)(%cr) %C(bold blue)<%an>%C(reset)' --abbrev-commit --date=relative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment