-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig
More file actions
50 lines (43 loc) · 1.21 KB
/
dot_gitconfig
File metadata and controls
50 lines (43 loc) · 1.21 KB
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
[user]
email = mail@moritzreiter.de
name = Moritz Reiter
[alias]
# Core workflow operations
s = status --short
amend = commit --amend
# to hell with everything (that happened since the last commit)
nevermind = !git reset --hard HEAD && git clean -d -f
branches = branch -vv
tags = tag
stashes = stash list
# Examining history
history = log --oneline --decorate --graph
changed-files = log --oneline --decorate --name-only
patches = log -p
lines = log -L # <start>,<end>:<file>
# Searching
ack = -c color.grep.linenumber=\"bold yellow\" \
-c color.grep.filename=\"bold green\" \
-c color.grep.match=\"reverse yellow\" \
grep --break --heading --line-number
# Ignoring files locally
ignore-locally = update-index --skip-worktree
unignore-locally = update-index --no-skip-worktree
ignored-locally = !git ls-files -v | grep '^S'
# Fixup
fixup = !git commit --fixup=\"$1\" \
&& git rebase --interactive --autosquash \"$1^\" \
&& :
[pull]
rebase = true
[diff]
submodule = log
[commit]
verbose = true
[init]
defaultBranch = main
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true