Skip to content

Instantly share code, notes, and snippets.

@donmccurdy
Last active August 29, 2015 13:57
Show Gist options
  • Save donmccurdy/9904438 to your computer and use it in GitHub Desktop.
Save donmccurdy/9904438 to your computer and use it in GitHub Desktop.
My Git Configuration
[user]
name = <Your Name>
email = <[email protected]>
[color]
# Makes the CLI usable.
ui = true
[push]
default = upstream
[branch "master"]
##### ESSENTIAL. Gets rid of the spammy commits each time you pull.
rebase = true
[branch]
##### ESSENTIAL. Gets rid of the spammy commits each time you pull.
autosetuprebase = always
[alias]
# Assorted Shortcuts
p = !git pullall && git branch
s = !git status
b = !git branch
sb = !git status && git branch
co = !git checkout
pp = "!git pullall; git push"
sps = "!git stash; git pullall; git stash pop"
spps = "!git stash; git pullall; git push; git stash pop"
pushall = "!git push --recurse-submodules=on-demand"
pullall = "!git pull && git submodule update"
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
[core]
##### ESSENTIAL. Windows / OSX filesystems don't get along without this.
autocrlf = input
# I use Vim, but you can put another editor in here.
editor = vim
# Use this file to tell Git about extensions that should *never* be committed.
excludesfile = ~/.gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment