-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
48 lines (48 loc) · 1.33 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[include]
path = ~/.gitconfig.local
[core]
editor = vim
quotepath = false
[alias]
co = checkout
p = pull
# status only for tracked files as default
s = status -suno
# extended status also showing untracked files
sa = status -s
b = branch
l = log --pretty=oneline -n 20 --graph --abbrev-commit
la = log --oneline --graph --decorate --branches --remotes --tags
ll = log --oneline --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %an: %s %Cgreen(%cr)%Creset' --decorate --all
# list files of commit
lf = diff-tree --no-commit-id --name-only -r --diff-filter=ACMRT
# different commits in branch: git dc staging..master
dc = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
# show branches that contain a given commit: git bc <commit>
bc = branch -r --contains
# show conflicts
conflicts = diff --name-only --diff-filter=U
d = difftool
c = commit
ds = diff --staged
a = add
# update remote branches
u = remote update --prune
# delete remote branch
drb = push origin --delete
# list merged remote branches
lmrb = branch -r --merged
[push]
default = current
[merge]
tool = vimdiff
conflictstyle = diff3
[mergetool]
prompt = false
keepBackup = false
[diff]
tool = vimdiff
[difftool]
prompt = false
[pull]
rebase = true