-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
88 lines (78 loc) · 2.25 KB
/
.gitconfig
File metadata and controls
88 lines (78 loc) · 2.25 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[user]
name = Andy Mitchell
email = 326561+Themitchell@users.noreply.github.com
signingkey = /Users/andy/.ssh/id_rsa.pub
[url "git@github.com:"]
insteadOf = https://github.com/
[mergetool]
keepBackup = true
[http]
sslVerify = false
[color]
diff = auto
branch = auto
status = auto
[color "status"]
added = blue
changed = yellow
untracked = white dim
[color "diff"]
meta = white bold
frag = magenta ul
old = red bold
new = green bold
[core]
excludesfile = /Users/andy/.global-gitignore
autocrlf = input
editor = vim
[push]
default = current
[rerere]
enabled = true
[alias]
br = branch
co = checkout
cm = commit
st = status
df = diff
dc = diff --cached
pl = pull
plr = pull -r
mrg = merge
ps = push
psf = push --force-with-lease
sh = stash
pop = stash pop
grp = grep
delete = "!f() { git push $1 --delete $2; }; f"
untrack = rm --cache --
save = !git add -A && git commit -m 'SAVEPOINT'
wip = commit -am "WIP"
undo = reset HEAD~1 --mixed
amend = commit -a --amend
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f"
lg = log --pretty=format:\"%x1b[33m%h%Creset %Cgreen%m%Creset %s %Cgreen(%an)%Creset\"
hist = log --pretty=format:\"%x1b[33m%h%Creset %x1b[37m%ad%Creset %Cgreen%m%Creset %s %Cgreen(%an)%Creset\" --graph --date=short
type = cat-file -t
dump = cat-file -p
fixup = !git rev-list -1 $1 | xargs -I % sh -c 'git commit --fixup % && GIT_SEQUENCE_EDITOR=true git rebase -i --autosquash %^'
feature = checkout -b feature/$1
change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f"
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[commit]
template = /Users/andy/.git-commit-message
gpgsign = true
[pull]
rebase = true
[init]
defaultBranch = main
[gpg]
format = ssh
[gpg "ssh"]
program = /Applications/1Password.app/Contents/MacOS/op-ssh-sign