-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitconfig
More file actions
40 lines (40 loc) · 1.31 KB
/
Copy path.gitconfig
File metadata and controls
40 lines (40 loc) · 1.31 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
[user]
name = Saoki11111
email = t.aoki11111@gmail.com
[core]
excludesfile = /Users/cook.aoki/.gitignore_global
pager = LESSCHARSET=utf-8 less
quotepath = false
[fetch]
prune = true
[alias]
# global-alias
delete-merged-branch = "!f() { \
git fetch --prune; git branch --merged | egrep -v '\\*|main|master|develop' | xargs git branch -d; \
}; f"
db = delete-merged-branch
openpr = "!f() { hub browse -- `git log --merges --oneline --reverse --ancestry-path $1...master | grep 'Merge pull request #' | head -n 1 | cut -f5 -d' ' | sed -e 's%#%pull/%'`; }; f"
export-diff-master = "!f() { git archive --format=zip HEAD `git diff master --name-only --diff-filter=AMCR` -o archive.zip; }; f"
# git-alias
co = checkout
cl = clone
st = status
e = config --global -e
b = branch --sort=authordate
a = add
cm = commit -m
df = diff
l = log
lo = log --oneline -n
f = fetch --prune --all
sh = stash
sp = stash pop
shm = stash save 'mysettings'
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
# [remote "origin"]
# url = https://github.com/Saoki11111/dotfiles.git
# fetch = +refs/heads/*:refs/remotes/origin/*