-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitconfig
63 lines (55 loc) · 1.62 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
# -*- encoding: utf-8 -*-
# (C) Erik Bernoth, erik.bernoth@gmail.com
# This file can be used and redistributed as much as you want
# These are my standard git configurations I always seem to need on any
# platform
[user]
name = Erik Bernoth
email = monimagspielen@gmx.de
signingkey = B3184097F006AFFE9580B57B9EDC992420B87B96
[status]
showUntrackedFiles = all
[core]
editor = vim
[push]
default = simple
[color]
ui = True
[merge]
conflictstyle = diff3
tool = vimdiff
prompt = false
[alias]
co = checkout
ammend = commit --amend
aa = commit -a --amend
# all useful commit combinations in short
ci = commit -s
cia = commit -as
cim = commit -sm
ciam = commit -asm
# log like gitk
lol = log --oneline --graph --decorate
lola = log --oneline --graph --decorate --all
lols = log --oneline --graph --decorate --all --max-count=10
lolf = log --oneline --graph --decorate dev..
# only show me what is not pushed yet
top = log --oneline --graph --decorate @{u}..
topold = "!git log --oneline --graph --decorate `git rev-parse --abbrev-ref HEAD` ^origin/`git rev-parse --abbrev-ref HEAD`"
# only show me what is not merged from remote yet
new = log --oneline --graph --decorate ..@{u}
newold = "!git log --oneline --graph --decorate ^`git rev-parse --abbrev-ref HEAD` origin/`git rev-parse --abbrev-ref HEAD`"
#these are not really used yet
st = status
stage = add
unstage = reset HEAD
[mergetool]
keepBackup = false
[diff]
tool = vimdiff
[difftool]
prompt = false
[init]
defaultBranch = main
[http]
sslVerify = true