-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
30 lines (29 loc) · 767 Bytes
/
gitconfig
File metadata and controls
30 lines (29 loc) · 767 Bytes
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
# .gitconfig for regular users
[user]
name = Benoît Merlet
[color]
ui = true
[core]
autocrlf = false
editor = vim
excludesfile = ~/.gitglobalignore
[alias]
branch-files = "!git diff --name-only $(git merge-base $(git main-branch) HEAD)"
branch-stats = "!git diff --stat $(git merge-base $(git main-branch) HEAD)"
log-branch = "!git log --reverse --oneline --no-decorate $(git main-branch)..HEAD"
log-branch-with-details = "!git log --reverse --no-decorate $(git main-branch)..HEAD"
main-branch = config init.defaultBranch
up = "!git pull --all --prune; git submodule update"
[log]
decorate = true
[pull]
rebase = true
[status]
showUntrackedFiles = all
[rebase]
autosquash = true
autostash = true
[diff]
noprefix = true
[init]
defaultBranch = main