-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig
32 lines (30 loc) · 923 Bytes
/
dot_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
[color]
ui = auto
[user]
name = Ohad Lutzky
email = [email protected]
[alias]
graph = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold black)- %an%C(reset)%C(bold yellow)%d%C(reset)'
# From https://jordanelver.co.uk/blog/2020/06/04/fixing-commits-with-git-commit-fixup-and-git-rebase-autosquash/
fixup = "!git log -n 50 --pretty=format:'%h %s' --no-merges | fzf | cut -c -7 | xargs -o git commit --fixup"
commitall = "!git add . && git commit -v"
purr = pull --rebase
[log]
decorate = true
[rebase]
autosquash = true
[github]
user = lutzky
[web]
browser = google-chrome
[push]
default = simple
[include]
# This is overridden by .gitconfig.delta if available
path = ~/.gitconfig.diff-highlight
path = ~/.gitconfig.work
path = ~/.gitconfig.delta
[init]
defaultBranch = main
[rerere]
enabled = true