-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
68 lines (60 loc) · 2.29 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
64
65
66
67
68
; core variables
[core]
editor = vim
pager = cat
trustctime = false ; http://www.git-tower.com/blog/make-git-rebase-safe-on-osx
precomposeunicode = false ; http://michael-kuehnel.de/git/2014/11/21/git-mac-osx-and-german-umlaute.html
[user]
name = Karl
email = local-part@domain
#[github]
# user = kvpb
#[qwasar]
# user = bertin_k
[push]
default = simple
[filter "lfs"]
smudge = git-lfs smudge %f
required = true
clean = git-lfs clean %f
[alias]
git = !git
#ga = !git add
#gaa = !git add --all ; Add file contents to the index, updating the index to match the working tree.
#gr = !git rm
#gc = !git commit -m ; Record changes to the repository.
#gcnm = !git commit --allow-empty-message -m '' ; Record changes to the repository, allowing empty commit message.
#gp = !git push
#gpch = !git push --force --tags origin 'refs/heads/*' ; Push corrected history.
#gpf = !git push --force ; Update remote refs that are not ancestors of the local ref used to overwrite it, along with associated objects.
#gpo = !git push origin ; Update remote refs along with associated objects, pushing 'matching' branches to origin.
#gri = !git rebase -i ; Reapply commits on top of another base tip, making a list of the commits which are about to be rebased.
#gs = !git status
a = add
c = commit -m
cn = commit --allow-empty-message --message=''
ca = commit --amend
p = push
pf = push --force
pl = push --force-with-lease
h = stash
ha = stash apply
hp = stash pop
hl = stash list
r = rebase --interactive
rd = rebase --committer-date-is-author-date
rc = rebase --continue
d = diff
log = log --reverse --pretty=fuller
l = log --max-count=10 --reverse --pretty=oneline
lf = log --reverse --pretty=fuller
s = status --short --untracked-files=no
sl = status --long
[color]
ui = true
[color "status"]
header = normal dim
#added = ; See `updated`.
updated = green ; Since green symbolizes hope, and blue, protection, green better fits this case, as files are added but not pushed.
changed = red ; Yellow or orange would better fit `changed`, if there were more options, e.g. for added and deleted files.
untracked = white dim ; `white bold` better fits the output of git-status, and `white dim` better fits that of git-status --short. Since I more often use the short output of git-status, let's go for dim white.