-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgitconfig
47 lines (39 loc) · 1.05 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
[user]
name = Yann Lugrin
email = [email protected]
[alias]
co = checkout
sw = switch
cb = switch -c
ci = commit
st = status
pf = push --force-with-lease
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
trust = !mkdir -p "$(git rev-parse --show-toplevel)/.git/safe" && echo "git repository is safe"
bprune = !git branch --merged | grep -v '\\(main\\|master\\|dev\\|staging\\|production\\|stable\\)$\\|\\*' | xargs -n 1 git branch -d
ignored = ls-files . --ignored --exclude-standard --others
[color]
diff = auto
status = auto
branch = auto
[core]
whitespace = space-before-tab,trailing-space,cr-at-eol,blank-at-eof
autocrlf = input
excludesfile = ~/.gitignore
editor = vim
[apply]
whitespace = fix
[push]
default = upstream
[branch]
autosetuprebase = always
[rebase]
autosquash = true
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[init]
defaultBranch = main
[gpg]
program = gpg