-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
33 lines (33 loc) · 1.09 KB
/
gitconfig
File metadata and controls
33 lines (33 loc) · 1.09 KB
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
30
31
32
33
[alias]
addws = diff -w --no-color | git apply --cached --ignore-whitespace
b = branch
c = commit
ca = commit -a
co = checkout
cob = checkout -b
contributors = shortlog -s -n
d = diff
dc = diff --cached
l = 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
lgb = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --branches
st = status
fixup = !sh -c 'git commit -a -m \"fixup! $(git log -1 --format='%s' $@)\"' -
squash = !sh -c 'git commit -a -m \"squash! $(git log -1 --format='%s' $@)\"' -
ri = rebase --interactive
rc = rebase --continue
rsth = git reset --hard
rsts = git reset --soft HEAD^
s = show
sqh = git rebase -i HEAD~
rmf = git rm --cached -r
[color]
diff = true
ui = true
[user]
email = beratdgan@gmail.com
name = Berat Dogan
[core]
autocrlf = false
excludesfile = .gitignore_global
editor = vim