-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
53 lines (52 loc) · 1.4 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
[include]
path = ~/.gitconfig.local
[alias]
st = status
please = push --force-with-lease
smush = !git commit -a --amend --no-edit && git please
untracked = ls-files --others --exclude-standard
msg = log --format=%B -n 1
steal = "!f() { git checkout \"$1\" -- \"$2\"; }; f"
original = !cat .git/rebase-apply/original-commit
recent = !git for-each-ref --sort=-committerdate --format='%(refname:short)' refs/heads/ | head -n 100
fixit = "!f() { git commit --fixup=$1; GIT_SEQUENCE_EDITOR=: git rebase -i --autosquash $1~1; }; f"
jump = !BRANCH=`git recent | fzf` && git checkout ${BRANCH}
rewrite = !HASH=`git log --pretty=oneline | head -n 100 | fzf` && git fixit `echo ${HASH} | awk '{ print $1 }'`
[core]
excludesfile = ~/.gitignore_global
pager = diff-so-fancy | less --tabs=4 -RFX
[push]
default = current
[init]
templatedir = ~/.git_template
defaultBranch = main
[diff-so-fancy]
markEmptyLines = false
[rebase]
autosquash = true
[commit]
verbose = true
[rerere]
enabled = true
[checkout]
defaultRemote = origin
[pull]
rebase = true
[advice]
addEmptyPathspec = false
[credential "https://dev.azure.com"]
useHttpPath = true
[user]
name = Duncan Brown
email = [email protected]
[diff]
external = difft
[log]
date=iso
[blame]
coloring=highlightRecent
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true