-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
79 lines (60 loc) · 1.98 KB
/
Copy pathgitconfig
File metadata and controls
79 lines (60 loc) · 1.98 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[user]
name = Vytautas Šaltenis
email = vytas@rtfb.lt
[include]
path = ~/.gitconfig.local
[includeIf "gitdir:~/wrk/"]
path = ~/wrk/gitconfig
[color]
ui = auto
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
st = status --short --branch --ignore-submodules=untracked
ci = commit
b = branch
co = checkout
df = diff
dc = diff --cached
lg = log -p --stat
l = log --graph --decorate --pretty=oneline --abbrev-commit
ll = log --graph --decorate --pretty=format:'%C(yellow)%h%Creset %C(bold blue)%<(18,trunc)%ae%Creset %C(yellow)%d%Creset %s %Cgreen(%cr)' --abbrev-commit
la = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
eyeball = show -p --stat
wip = commit -a -mWIP
rollup = commit -a --amend --no-edit
# check out main or master, whichever is present:
m = !git checkout \"$(git branch --format '%(refname:short)' --list master main)\"
# my commits
ml = log --author=vytas
# switch to branch by fuzzy search
fb = !sh -c 'git checkout $(git branch | fzf -1 -q $0)'
# same as 'll' but with --author=me
mll = log --author=vytas --graph --decorate --pretty=format:'%C(yellow)%h%Creset %C(bold blue)%<(18,trunc)%ae%Creset %C(yellow)%d%Creset %s %Cgreen(%cr)' --abbrev-commit
# new branch:
nb = checkout -b
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
# Figure out SHA1 by tag name
tagcommit = !sh -c 'git rev-list $0 | head -n 1'
# diff between master and current branch
bdiff = !sh -c 'git diff master..`git rev-parse --abbrev-ref HEAD`'
# get rid of local references to remote branches that no longer exist
prune = fetch --prune
[diff]
noprefix = true
[push]
default = simple
[core]
quotepath = false
[url "git@github.com:"]
insteadOf = gh: