-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
63 lines (63 loc) · 1.87 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
[alias]
aa = add -A .
st = status
ci = commit
co = checkout
br = branch
tip = log -1 --show-signature
cp = cherry-pick
put = push origin HEAD
fixup = !sh -c 'git commit -m \"fixup! $(git log -1 --format='\\''%s'\\'' $@)\"' -
squash = !sh -c 'git commit -m \"squash! $(git log -1 --format='\\''%s'\\'' $@)\"' -
doff = reset head^
ri = rebase --interactive
count = !git shortlog -sn
pruneremote = remote prune origin
tree = log --graph --oneline --decorate --color --all
tr = log --graph --oneline --decorate --color
unpushed = !"PROJ_BRANCH=$(git symbolic-ref HEAD | sed 's|refs/heads/||') && git log origin/$PROJ_BRANCH..HEAD"
unpulled = !"PROJ_BRANCH=$(git symbolic-ref HEAD | sed 's|refs/heads/||') && git fetch && git log HEAD..origin/$PROJ_BRANCH"
add-untracked = !"git status --porcelain | awk '/\\?\\?/{ print $2 }' | xargs git add"
ln = log --pretty=format:'%Cblue%h %Cred* %C(yellow)%s'
reset-authors = commit --amend --reset-author -CHEAD
rmbranch = "!f(){ git branch -d ${1} && git push origin --delete ${1}; };f"
snapshot = !git stash save "snapshot: $(date)" && git stash apply "stash@{0}"
[color]
diff = auto
status = auto
branch = auto
ui = auto
interactive = auto
[core]
excludesfile = ~/.gitignore
editor = vim
[apply]
whitespace = nowarn
[mergetool]
keepBackup = false
[merge]
summary = true
tool = opendiff
[difftool]
prompt = false
[help]
autocorrect = 10
[push]
# See `git help config` (search for push.default)
# for more information on different options of the below setting.
#
# Setting to git 2.0 default to suppress warning message
default = tracking
[branch]
autosetupmerge = true
autosetuprebase = always
[interactive]
singlekey = true
[url "https://github"]
insteadOf = git://github
[diff "sopsdiffer"]
textconv = sops -d
[init]
defaultBranch = main
[include]
path = ~/.gitconfig.local