-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
43 lines (37 loc) · 1.45 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
[alias]
#短縮
b = branch
c = commit -am
st = status
stt = status -uno
co = checkout
cob = checkout -b
pod = pull origin develop
pom = "!f() { git pull origin master; git pull origin main; }; f"
pomaster = pull origin master
pomain = pull origin master
l = log -n 10 --date=short --pretty=format:'%cd %C(yellow)%h%Creset %C(green)%an %Creset%s %Creset'
logf = log --name-status --pretty=format:\"%C(red)%h %C(green)%an %Creset%s %C(yellow)%d%Creset\"
tree = log --graph --pretty='format:%C(yellow)%h%Creset %s %Cgreen(%an)%Creset %Cred%d%Creset'
graph = log --graph --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s'
gr = log --graph --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s'
#行ごとの差分じゃなくて,単語レベルでの差分を色付きで表示する
difff = diff --word-diff
wdiff = diff --word-diff=plain
#カレントブランチをpushする
p = !git push origin `git rev-parse --abbrev-ref HEAD`
showpr = "!f() { git log --merges --oneline --reverse --ancestry-path $1...master | grep 'Merge pull request #' | head -n 1; }; f"
[core]
excludesfile = ~/.gitignore_global
ignorecase = false
# [credential]
# helper = !aws codecommit credential-helper $@
# UseHttpPath = true
[user]
name = y-ohgi
email = [email protected]
[github]
user = y-ohgi
email = [email protected]
[init]
defaultBranch = main