-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgitconfig
More file actions
63 lines (60 loc) · 1.8 KB
/
gitconfig
File metadata and controls
63 lines (60 loc) · 1.8 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
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
61
62
63
[alias]
barfoo = status
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
create-branch = !sh -c 'git push origin HEAD:refs/heads/$1 && git fetch origin && git branch --track $1 origin/$1 && cd . && git checkout $1' -
delete-branch = !sh -c 'git push origin :refs/heads/$1 && git remote prune origin && git branch -D $1' -
merge-branch = !git checkout master && git merge @{-1}
pr = !hub pull-request
up = !git fetch origin && git rebase origin/master
aa = add --all
ap = add --patch
dc = diff --cached
arb = "!git log -g --grep-reflog \"checkout:\" --format=\"%gs\" | sed -E \"s/.*from .* to (.*)/\\1/\" | tail -n +2 ; git branch -r --format='%(refname:short)' | sed -E \"s:origin/::\""
all-recent-branches = "!git arb | awk '!x[$0]++'"
sb = "!git checkout $( git all-recent-branches | fzy )"
pu = push -u origin HEAD
pf = push --force-with-lease
rbc = rebase --continue
fx = "!target=$( git log --oneline | fzy | awk '{ print $1; }' ) && git commit -n --fixup=${target} && GIT_SEQUENCE_EDITOR=true git rebase -i --autosquash --autostash ${target}^"
cp = cherry-pick
[color]
ui = auto
[user]
email = c.m.lesueur@gmail.com
name = Chris Le Sueur
[diff "zip"]
textconv = unzip -c -a
[difftool]
prompt = false
[mergetool]
prompt = false
[core]
editor = vim
excludesfile = ~/.gitignore
[push]
default = simple
[rerere]
enabled = true
[submodule]
recurse = true
[include]
path = .gitconfig.local
[merge]
conflictstyle = diff3
tool = meld
[pull]
ff = only
[mergetool "meld"]
cmd = meld --auto-merge "$LOCAL" "$BASE" "$REMOTE" --output "$MERGED"
hideResolved = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true