forked from sontek/homies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_gitconfig
45 lines (43 loc) · 1.26 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
[user]
name = Christian Rösch
email = [email protected]
[include]
path = ~/.gitconfig_user
[core]
excludesfile = ~/.gitignore_global
commentchar = $
editor = vim
[pack]
threads = 4
[color]
ui = true
[push]
default = simple
[pull]
rebase = true
[branch]
autosetuprebase = always
[alias]
diverges = !bash -c 'diff -u <(git rev-list --first-parent "${1}") <(git rev-list --first-parent "${2:-HEAD}") | sed -ne \"s/^ //p\" | head -1' -
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
up = !sh -c 'git pull --rebase && git log --pretty=format:\"%Cgreen%h %Cblue%s %Cred[%an (%cn)] %Creset- (%ai [%ci])\" ORIG_HEAD..'
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
ls-ignored-files = ls-files -ci --exclude-standard
apply-gitignore = !git ls-files -ci --exclude-standard -z | xargs -0r git rm --cached
g = grep --break --heading --line-number
fix = "!f() { vim `git diff --name-only | uniq`; }; f"
issue = !/home/christian/git/git-issue/git-issue.sh
[grep]
extendRegexp = true
lineNumber = true
[merge]
tool = vimdiff
[init]
defaultBranch = main