Created
August 31, 2011 09:33
-
-
Save k1000/1183171 to your computer and use it in GitHub Desktop.
my .gitconfig with aliases and other fancy staff
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
[core] | |
editor = mate -w | |
[user] | |
name = kamil | |
email = selwak@gmail.com | |
[color] | |
ui = auto | |
[alias] | |
ai = add --interactive | |
c = commit | |
# commit with a message | |
cm = commit -m | |
cma = commit -a -m | |
# # amending the previous commit | |
ca = commit --amend | |
caa = commit -a --amend -C HEAD | |
# reset | |
## soft resets | |
r = reset | |
r1 = reset HEAD^ | |
r2 = reset HEAD^^ | |
## hard resets | |
rh = reset --hard | |
rh1 = reset HEAD^ --hard | |
rh1 = reset HEAD^^ --hard | |
# | |
# shortcuts for commands | |
s = status | |
d = diff | |
a = add | |
co = checkout | |
b = branch | |
l = log | |
f = fetch | |
r = reset | |
p = push | |
tree = log --graph --decorate --pretty=oneline --abbrev-commit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment