-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
29 lines (25 loc) · 867 Bytes
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[alias]
last = log -1
st = status --short
br = branch
desc = !git config --get branch.`git symbolic-ref --short HEAD`.description
co = commit -v
ch = checkout
#undo
unstage = reset HEAD --
undo = reset --hard
retreat = reset --hard HEAD~1
unmerge = reset --merge ORIG_HEAD
stash-unapply = '!git stash show -p | git apply -R'
#extended log
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
whoops="!git add --all; git commit --amend --no-edit"
whoopsie="!git add --all; git commit --amend --no-edit; git push -f origin `git symbolic-ref --short HEAD`"
[core]
editor = vim
autocrlf = input
excludesfile = /home/pablo/.gitignore_global
[push]
default = simple
[merge]
branchdesc = false