Last active
June 9, 2017 07:38
-
-
Save laurentperroteau/0f835998dedb0a757ea0 to your computer and use it in GitHub Desktop.
Git config (avec alias)
This file contains 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
[user] | |
name = myName | |
email = myEmail | |
[core] | |
autocrlf = true | |
editor = nano | |
[alias] | |
c = commit | |
b = branch -a | |
s = status -sb -uall | |
a = add | |
k = !git add . && git commit | |
di = "!f() { git diff --ignore-space-change $1; }; f" | |
f = fetch origin | |
undo = reset --soft HEAD^ | |
crb = "!f() { git checkout -b $1 origin/$1; }; f" | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset' --abbrev-commit --date=relative --all | |
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset' --abbrev-commit --date=relative --all --max-count='10 | |
[push] | |
default = simple |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment