This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
76 lines (63 loc) · 1.97 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
70
71
72
73
74
75
76
[user]
name = Karolis Stasaitis
email = [email protected]
signingKey = 30BBC79DB4891D4D0CC9718A2EECC8FA302A72F5!
[core]
excludesfile = ~/.gitignore.global
ignorecase = false
[push]
default = current
[merge]
tool = opendiff
[diff]
tool = vimdiff
[mergetool]
prompt = false
[difftool]
prompt = false
[status]
submoduleSummary = true
[alias]
co = checkout
ci = commit
st = status
br = branch
sw = switch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
repull = pull --rebase
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
unstage = reset --
# commonly used
latest-branches = ! git reflog | egrep -io \"moving from ([^[:space:]]+)\" | awk '{ print $3 }' | awk ' !x[$0]++' | egrep -v '^[a-f0-9]{40}$' | head -n5
rpd = pull origin develop --rebase
pu = push -u
undo-commit = reset --hard "HEAD^"
stage-commit = reset --soft "HEAD^"
bs = branch --sort=-committerdate
bolm = ! git fetch origin master:master && git switch -c $1 master # branch off of latest master
# hub extensions
cpr = ! hub pull-request # create pull-request
dpr = cpr -d # create a draft pull-request
pcp = ! git pu && git cpr # push and create pull-request
# releases
release-date = ! git tag release-$(date +%Y-%m-%d)
release-datetime = ! git tag release-$(date +%Y-%m-%d.%H-%M)
# revert only file permission changes
permission-reset = ! git diff -p -R --no-color | grep -E \"^(diff|(old|new) mode)\" --color=never | git apply
[credential]
helper = osxkeychain
#[commit]
# gpgsign = true
#[gpg]
# program = gpg
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[includeIf "gitdir:Projects/heyjobs/**"]
path = ~/dotfiles/git/heyjobs.gitconfig
[includeIf "gitdir:Projects/delanoir/**"]
path = ~/dotfiles/git/delanoir.gitconfig