-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
136 lines (99 loc) · 3.25 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[user]
email = laspavel@gmail.com
name = laspavel
[core]
editor = $EDITOR
# autocrlf=true
pager = less -niSFX
filemode = true
mergeoptions = --no-edit
excludesfile= ~/.gitignore
# Speed up commands involving untracked files such as `git status`.
# https://git-scm.com/docs/git-update-index#_untracked_cache
untrackedCache = true
[push]
# Make `git push` automatically push relevant
# annotated tags when pushing branches out.
followTags = true
[init]
defaultBranch = master
[apply]
# Detect whitespace errors when applying a patch.
whitespace = fix
[status]
showUntrackedFiles = all
[fetch]
prune = true
[rebase]
autostash = true
[pull]
rebase=false
[init]
defaultBranch = master
[diff]
noprefix = true
renames = true
colorMoved = default
[grep]
lineNumber = true
patternType = extended
[http]
sslVerify = false
[color]
ui = auto
interactive = auto
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = green bold
changed = yellow bold
untracked = red bold
[branch]
# Show most recently changed branches first.
sort = -committerdate
[pretty]
custom = "%C(blue)%h%C(red)%d %C(yellow)%ar %C(green)%s %C(yellow)(%an)"
# │ │ │ │ └─ author name
# │ │ │ └─ message
# │ │ └─ date (relative)
# │ └─ decorations (branch, heads or tags)
# └─ hash (abbreviated)
[alias]
today = log --since=midnight --color --graph --abbrev-commit --pretty=format:'%C(blue)%h%C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr'
yesterday = log --since yesterday --until=midnight --color --graph --pretty=format:'%C(blue)%h%C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr'
l = log --until=midnight --color --graph --abbrev-commit --pretty=format:'%C(blue)%h%C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr'
a = add .
# View the current working tree status using the short format.
s = status -s
# Commit all changes.
ca = !git add --all && git commit -av
# Clone a repository including all submodules.
c = clone --recursive
# Show the diff between the latest commit and the current state.
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
# Pull in remote changes for the current repository and all its submodules.
pl = pull --recurse-submodules
# Switch to a branch, creating it if necessary.
go = "!f() { git checkout -b \"$1\" 2> /dev/null || git checkout \"$1\"; }; f"
up = push origin master
down = pull origin master
branches = branch -avv --list
remotes = remote -v
tags = tag -l
# Switch to a branch, creating it if necessary.
go = "!f() { git checkout -b \"$1\" 2> /dev/null || git checkout \"$1\"; }; f"
# List contributors with number of commits.
contributors = shortlog --summary --numbered
[help]
autocorrect = 1
[merge]
# Include summaries of merged commits in newly created merge commit messages
log = true