2021-03-15 15:18:21 +01:00
|
|
|
[include]
|
2021-03-17 07:34:26 +01:00
|
|
|
# local and/or misc changes not committed to Git:
|
|
|
|
path = .gitconfig.local
|
2021-03-15 15:18:21 +01:00
|
|
|
[alias]
|
2021-03-17 07:34:26 +01:00
|
|
|
aa = add .
|
2021-05-17 11:27:57 +02:00
|
|
|
acf = !git add . && git cf
|
2021-12-30 14:25:49 +01:00
|
|
|
acfp = !git add . && git cf && git push
|
2021-03-17 07:34:26 +01:00
|
|
|
adp = add -p
|
2021-05-06 14:46:45 +02:00
|
|
|
an = add -N .
|
2021-10-08 14:27:22 +02:00
|
|
|
adn = an
|
2021-06-22 12:04:38 +02:00
|
|
|
b = branch
|
2021-03-17 07:34:26 +01:00
|
|
|
bn = rev-parse --abbrev-ref HEAD
|
|
|
|
br = branch
|
2021-07-21 11:12:56 +02:00
|
|
|
ca = commit --amend --no-edit
|
2021-12-20 21:09:24 +01:00
|
|
|
cad = !git commit --amend --no-edit --date \"$(date)\"
|
2021-07-21 11:12:56 +02:00
|
|
|
cae = commit --amend
|
2021-06-28 13:08:41 +02:00
|
|
|
cdf = clean -df
|
|
|
|
cdfn = clean -dfn
|
2021-05-03 10:17:01 +02:00
|
|
|
cf = !git commit --fixup $(git log --invert-grep --grep fixup -n1 --oneline --format=format:%h)
|
2021-05-06 14:46:45 +02:00
|
|
|
chp = checkout -p
|
2021-03-17 07:34:26 +01:00
|
|
|
ci = commit
|
2021-03-21 16:10:06 +01:00
|
|
|
cl = clone
|
2021-04-08 10:53:27 +02:00
|
|
|
cltms = !sh -c 'cd $HOME/dev && git clone $1 && cd $(basename $1 .git) && tmuxsess' --
|
2021-03-17 07:34:26 +01:00
|
|
|
co = checkout
|
2021-08-13 10:07:56 +02:00
|
|
|
cols = !git checkout $(git branch | fzf)
|
2021-03-17 07:34:26 +01:00
|
|
|
cp = cherry-pick
|
2021-10-20 16:23:27 +02:00
|
|
|
cp2 = "!fn() { git cherry-pick $1~2..$1; }; fn"
|
2022-02-07 18:47:46 +01:00
|
|
|
cp3 = "!fn() { git cherry-pick $1~3..$1; }; fn"
|
2023-06-30 05:12:15 +02:00
|
|
|
cp4 = "!fn() { git cherry-pick $1~4..$1; }; fn"
|
2021-08-13 10:07:56 +02:00
|
|
|
cpls = !git cp $(git ls)
|
2021-03-17 07:34:26 +01:00
|
|
|
d = diff
|
2021-10-13 15:23:56 +02:00
|
|
|
dls = !git diff $(git branch | fzf)
|
2023-07-07 12:08:50 +02:00
|
|
|
dom = !git diff origin/$(git mainbranch)...
|
2021-05-17 11:27:57 +02:00
|
|
|
drb = !git diff $(git rb)
|
2021-03-17 07:34:26 +01:00
|
|
|
ds = diff --staged
|
|
|
|
f = fetch
|
2022-03-22 08:10:44 +01:00
|
|
|
fc = commit --allow-empty -m 'Initial commit'
|
2023-07-07 12:08:50 +02:00
|
|
|
fixom = !sh -c 'git fetch && git rebase -i --autosquash origin/$(git mainbranch)'
|
2021-05-06 14:46:45 +02:00
|
|
|
fixup = rebase -i --autosquash
|
2021-05-05 13:10:12 +02:00
|
|
|
l = log
|
2021-10-13 09:56:10 +02:00
|
|
|
l1 = log --oneline
|
2021-05-31 10:29:55 +02:00
|
|
|
ll = log --oneline -n 5
|
2021-09-28 19:52:33 +02:00
|
|
|
lp = log -p
|
2021-07-27 08:59:18 +02:00
|
|
|
lm = logme
|
|
|
|
logme = !sh -c 'git log --author=\"$(git config --get user.name)\"'
|
2023-09-17 07:33:28 +02:00
|
|
|
lrb = !git log $(git drb)
|
2021-05-06 14:46:45 +02:00
|
|
|
ls = !git branch --format '%(refname:short)' | fzf
|
2023-09-17 07:33:28 +02:00
|
|
|
ma = merge --abort
|
2023-07-07 12:08:50 +02:00
|
|
|
mainbranch = !gitmainbranch
|
2023-06-30 05:12:15 +02:00
|
|
|
mls = !git merge $(git ls)
|
2021-03-17 07:34:26 +01:00
|
|
|
mr = !git merge $(git rb)
|
2023-06-30 05:12:15 +02:00
|
|
|
mrb = mr
|
2021-05-21 21:52:42 +02:00
|
|
|
mt = merge -s recursive -X theirs
|
2021-04-22 11:41:53 +02:00
|
|
|
nb = checkout -b
|
2021-06-18 15:13:57 +02:00
|
|
|
nuke1 = reset --hard HEAD^
|
2021-03-17 07:34:26 +01:00
|
|
|
nuke = reset --hard
|
2021-04-13 17:59:03 +02:00
|
|
|
p = push
|
2023-10-03 08:47:56 +02:00
|
|
|
pf = push --force-with-lease
|
|
|
|
pff = push --force
|
2021-03-17 07:34:26 +01:00
|
|
|
pl = pull
|
|
|
|
plr = pull --rebase
|
2021-05-20 10:14:41 +02:00
|
|
|
ph = push -u origin HEAD
|
2021-10-20 16:23:27 +02:00
|
|
|
pr = dom
|
2023-07-07 12:08:50 +02:00
|
|
|
prs = !git diff --stat origin/$(git mainbranch)
|
2021-05-05 13:10:12 +02:00
|
|
|
ra = rebase --abort
|
2021-03-17 07:34:26 +01:00
|
|
|
rb = !git rev-parse --abbrev-ref --symbolic-full-name @{u}
|
|
|
|
rc = rebase --continue
|
2021-05-05 13:10:12 +02:00
|
|
|
re = rebase
|
2021-10-13 09:56:10 +02:00
|
|
|
rels = !git rebase $(git branch | fzf)
|
2021-10-13 15:23:56 +02:00
|
|
|
ri = rebase -i --autosquash
|
2023-07-07 12:08:50 +02:00
|
|
|
rom = !sh -c 'git fetch && git rebase origin/$(git mainbranch)'
|
2021-07-21 11:12:56 +02:00
|
|
|
rr = !sh -c 'git fetch && git reset --hard $(git rb)'
|
2021-07-28 09:16:32 +02:00
|
|
|
rv = revert
|
|
|
|
rvh = revert HEAD
|
|
|
|
rvnh = revert -n HEAD
|
2021-03-17 07:34:26 +01:00
|
|
|
s = status
|
2021-12-16 23:32:12 +01:00
|
|
|
sh = show -p
|
2022-04-18 08:10:41 +01:00
|
|
|
sha = sy
|
2021-12-16 23:32:12 +01:00
|
|
|
shp = sh
|
2021-06-22 12:02:20 +02:00
|
|
|
sl = stash list
|
2021-03-26 17:24:46 +01:00
|
|
|
sq = merge --squash
|
2021-08-13 10:07:56 +02:00
|
|
|
sqls = !git sq $(git ls)
|
2021-06-18 15:13:57 +02:00
|
|
|
sqt = merge --squash -s recursive -X theirs
|
2021-03-18 09:05:37 +01:00
|
|
|
ss = stash save
|
2021-12-16 20:23:10 +01:00
|
|
|
st = stash
|
2024-03-10 21:30:11 +01:00
|
|
|
stus = stash --keep-index -u
|
2021-06-18 15:13:57 +02:00
|
|
|
sy = !gitsha1yank -s
|
|
|
|
sum = show --stat
|
2021-05-06 14:46:45 +02:00
|
|
|
sshp = stash show -p
|
2022-02-07 18:47:46 +01:00
|
|
|
undo = reset --soft HEAD^
|
|
|
|
wip = !git add . && git commit -m 'WIP'
|
2023-06-30 05:12:15 +02:00
|
|
|
wt = worktree
|
2021-03-15 15:18:21 +01:00
|
|
|
[user]
|
2021-03-17 07:34:26 +01:00
|
|
|
email = rob@netflux.io
|
|
|
|
name = Rob Watson
|
2021-03-15 15:18:21 +01:00
|
|
|
[core]
|
2021-06-22 06:24:37 +02:00
|
|
|
editor = nvim
|
2021-03-17 07:34:26 +01:00
|
|
|
quotePath = false
|
|
|
|
commitGraph = true
|
|
|
|
pager = delta
|
2021-03-15 16:44:05 +01:00
|
|
|
[color]
|
2021-03-17 07:34:26 +01:00
|
|
|
ui = auto
|
2021-03-15 16:44:05 +01:00
|
|
|
[pull]
|
2021-03-17 07:34:26 +01:00
|
|
|
ff = only
|
2021-03-15 16:44:05 +01:00
|
|
|
[init]
|
2022-05-19 17:08:28 +02:00
|
|
|
defaultBranch = main
|
2021-03-15 15:18:21 +01:00
|
|
|
[credential "https://github.com"]
|
2021-03-17 07:34:26 +01:00
|
|
|
helper = !gh auth git-credential
|
2021-03-15 15:18:21 +01:00
|
|
|
[diff]
|
2021-03-17 07:34:26 +01:00
|
|
|
tool = vimdiff
|
2021-03-15 15:18:21 +01:00
|
|
|
[merge]
|
2021-03-17 07:34:26 +01:00
|
|
|
tool = vimdiff
|
2021-03-15 15:18:21 +01:00
|
|
|
[interactive]
|
2021-03-17 07:34:26 +01:00
|
|
|
diffFilter = delta --color-only
|
2021-03-15 15:18:21 +01:00
|
|
|
[delta]
|
2021-03-17 07:34:26 +01:00
|
|
|
side-by-side = true
|
2021-03-29 15:09:50 +02:00
|
|
|
plus-style = 'syntax "#142e20"'
|
|
|
|
zero-style = 'syntax "#1d1f21" dim'
|
|
|
|
minus-style = 'syntax "#36181d"'
|
2021-03-17 07:34:26 +01:00
|
|
|
commit-decoration-style = bold yellow box ul
|
|
|
|
file-style = bold yellow ul
|
|
|
|
file-decoration-style = none
|