-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
68 lines (62 loc) · 1.56 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
[user]
name = Tom Moulard
[push]
; https://git-scm.com/docs/git-config#Documentation/git-config.txt-pushdefault
default = current
autoSetupRemote = true
[color]
ui = true
[credential]
helper = cache --timeout=360000
[alias]
# List all aliases.
# Stolen from here:
# https://twitter.com/TrevorBramble/status/774292970681937920
aliases = "!git config -l | grep ^alias | cut -c 7- | sort"
# fix typos
cehckout = checkout
chekcout = checkout
# fix diff
diff = diff --ignore-all-space
# fix commit
oops = commit --amend --no-edit -S
# display commit history
tree = log --all --decorate --oneline --graph
# A slightly-less-destructive and risky git push --force
# --force-with-lease ensures you won't overwrite any work on the remote
# branch if more commits were added to the remote branch (by another
# team-member or coworker, etc.). It ensures you do not overwrite
# someone elses work by --force pushing.
# Stolen from here:
# https://github.com/jsatk/dotfiles/blob/ck/tag-git/gitconfig
please = push --force-with-lease
poule = pull
[diff "bin"]
textconv = hexdump -v -C
[diff "pdf"]
textconv = pdfinfo
[diff "zip"]
textconv = unzip -v
[pull]
rebase = true
[rebase]
autoStash = true
[merge]
tool = vimdiff
[core]
excludesfile = /home/tm/workspace/configLoader/gitignore
[init]
defaultBranch = main
[blame]
coloring = highlightRecent
[checkout]
; https://git-scm.com/docs/git-config#Documentation/git-config.txt-checkoutworkers
workers = -1
[fetch]
parallel = 0
[grep]
column = true
lineNumber = true
[format]
signOff = true
; vim: set ft=gitconfig: