-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgitconfig
More file actions
63 lines (63 loc) · 1.58 KB
/
gitconfig
File metadata and controls
63 lines (63 loc) · 1.58 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
[user]
email = julian@fahrer.net
name = Julian Fahrer
initials = jf
[core]
editor = vim
excludesfile = ~/.gitignore
pager = less -FXRS -x2
[push]
default = current
[alias]
a = add
aa = add --all
ap = add --patch
b = checkout -b
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
ci = commit -v
co = checkout
cob = !git recent | fzf | xargs -r git checkout
cp = git cherry-pick
d = diff
dc = diff --cached
fixup = commit --amend -C HEAD
fp = push --force-with-lease
g = log --pretty=format:\"%h %an - %s\" --graph
lc = log ORIG_HEAD.. --stat --no-merges
lgo = log --oneline
ol = log --format=\"%C(yellow)%h%Creset %C(cyan)%aN%Creset\t%s\"
recent = !git for-each-ref --sort=-committerdate --format='%(refname:short)' refs/heads/ | head -n 100
stat = !git diff --stat $(git merge-base HEAD \"main\")
t = track-branch
w = whatchanged
uncommit = reset --soft HEAD^
r = rebase
rma = rebase master
ra = rebase --abort
rc = rebase --continue
cb = rev-parse --abbrev-ref HEAD
slist = !git stash list | cut -f 1 -d ':' | fzf --preview 'git stash show -p {}' | xargs -r git stash pop
[include]
path = ~/.gitconfig.local
[hub]
protocol = https
[autosetup]
rebase = true
[branch]
autosetuprebase = remote
autosetupmerge = true
mergeoptions = --no-commit --no-ff
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = true
[pull]
default = current
[credentials]
helper = osxkeychain
[init]
defaultBranch = main
[diff]
colorMoved = zebra