Skip to content

Instantly share code, notes, and snippets.

@jpavon
Created June 29, 2012 20:16
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 jpavon/3020379 to your computer and use it in GitHub Desktop.
Save jpavon/3020379 to your computer and use it in GitHub Desktop.
.gitconfig
[core]
autocrlf = true
safecrlf = true
[alias]
co = checkout
ci = commit
st = status
b = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
# View the current working tree status using the short format
s = status -s
# Diff
d = diff --patch-with-stat
# Pull in remote changes for the current repository and all its submodules
p = !"git pull; git submodule foreach git pull origin master"
# Clone a repository including all submodules
c = clone --recursive
# Commit all changes
ca = commit -a
# Switch to a branch, creating it if necessary
go = checkout -B
# Undo a `git push`
undopush = push -f origin HEAD^:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment