-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
executable file
·60 lines (56 loc) · 2.07 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
49
50
51
52
53
54
55
56
57
58
59
60
[alias]
cat = show
co = checkout
ci = commit -a
cp = cherry-pick -e
stat = status --short --branch
s = status --short --branch
undo-commit = !git dl && git reset --soft HEAD^
subup = git submodule foreach pull origin master
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lol = log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=short --abbrev-commit --graph --decorate
# lol = log --pretty=oneline --abbrev-commit --graph --decorate
fl = log -u
dl = "!git ll -1"
dlc = diff --cached HEAD^
la = "!git config -l | grep alias | cut -c 7-"
out = "!echo bye bye."
tree = log --graph --oneline --all
bogus = push origin +:refs/heads/bogus_branch
push = push --tags
permission-reset = !git diff -p -R | grep -E \"^(diff|(old|new) mode)\" | git apply
wd = diff --word-diff="color"
wdc = diff --word-diff="color" --cached
d = diff --ignore-all-space
dc = diff --cached --ignore-all-space
# Make stashing easier
st = stash
stl = stash list
stp = stash pop
# Easier merging
m = merge -s recursive -X patience
mm = merge --no-ff
ignore = !git update-index --assume-unchanged
unignore = !git update-index --no-assume-unchanged
ignored = !git ls-files -v | grep ^[a-z]
accept-ours = "!f() { [ -z \"$@\" ] && set - '.'; git checkout --ours -- \"$@\"; git add -u -- \"$@\"; }; f"
accept-theirs = "!f() { [ -z \"$@\" ] && set - '.'; git checkout --theirs -- \"$@\"; git add -u -- \"$@\"; }; f"
[diff]
renameLimit = 2000
[merge]
renameLimit = 32000
[mergetool]
prompt = false
keepBackup = false
[mergetool "cp"]
cmd = /bin/cp -v \"$REMOTE\" \"$MERGED\"
trustExitCode = true
[difftool]
prompt = false
[push]
default = simple
[core]
fscache = true
[init]
templatedir = ~/bash-environment/git-templates