-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
69 lines (59 loc) · 1.67 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[url "[email protected]:DataDog/"]
insteadOf = https://github.com/DataDog/
[user]
email = [email protected]
name = Mike Graf
signingkey = key::ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILHHRVnDMyz2ded/z00xcLPYWmsGLDzzHgUANPPVrd5U
[url "ssh://[email protected]"]
insteadOf = https://github.com
[alias]
co = checkout
ci = commit
dt = difftool -- ":(exclude)vendor/"
st = status
br = branch
fup = ! git ci --amend --no-edit && git push -f origin `git rev-parse --abbrev-ref HEAD`
praise = blame
# List all available git aliases
# Usage: git aliases
aliases = "!git config -l | grep alias | cut -c 7-"
# Create a "work in progress" commit with your current changes
# Usage: git wip
wip = !git add . && git commit -am "WIP" --no-verify
# Undo your last commit
# Usage: git undo
undo = reset --soft HEAD~1
# "Safer" force push -- see http://weiqingtoh.github.io/force-with-lease/
# Usage: git pushf
pushf = push --force-with-lease
# Create a new branch
# Usage: git cb <branch-name>
cb = checkout -b
# Run git status with the short-format flag
# Usage: git s
s = status --short
# Deletes local branches references that have already been merged
gone = ! git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D
[diff]
tool = vimdiff
[merge]
tool = vimdiff
[difftool]
prompt = false
[core]
hooksPath = /usr/local/dd/global_hooks
[push]
autoSetupRemote = true
[pull]
ff = only
[gpg "ssh"]
program = dd-gitsign
allowedSignersFile = /Users/mike.graf/.config/gitsign/allowed-signers
[gpg]
format = ssh
[dd-gitsign]
username = pup-mikegraf
[commit]
gpgSign = true
[tag]
gpgSign = true