-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig
52 lines (46 loc) · 1.3 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[user]
email = [email protected]
name = Moritz Reiter
[alias]
# Core workflow operations
s = status --short
amend = commit --amend
ff = merge --ff-only
unstage = reset HEAD --
# 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
# 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
# Examining history
history = log --oneline --decorate --graph
changed-files = log --oneline --decorate --name-only
patches = log -p
lines = log -L # <start>,<end>:<file>
# Ignoring files locally
ignore-locally = update-index --skip-worktree
unignore-locally = update-index --no-skip-worktree
ignored-locally = !git ls-files -v | grep '^S'
# Cleanup
cleanup-merged-branches = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"
[pull]
rebase = true
[diff]
tool = meld
submodule = log
[merge]
tool = meld
[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