Created
June 29, 2012 20:16
-
-
Save jpavon/3020379 to your computer and use it in GitHub Desktop.
.gitconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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