Skip to content

Instantly share code, notes, and snippets.

@k1000
Created August 31, 2011 09:33
Show Gist options
  • Save k1000/1183171 to your computer and use it in GitHub Desktop.
Save k1000/1183171 to your computer and use it in GitHub Desktop.
my .gitconfig with aliases and other fancy staff
[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