-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.config-example
63 lines (62 loc) · 1.82 KB
/
.config-example
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
[user]
name = Josh Barnheiser
email = [email protected]
[core]
editor = /usr/bin/vim
bare = false # use git-init --bare to make this true. Will act like remote (no working dir).
[commit]
template = ~/.gitmessage.txt
[diff]
[color]
ui = auto
[alias]
a = add .
aa = add --all
amend = commit --amend
ants = describe HEAD
b = branch
ba = branch -a
bl = blame
c = commit
ca = "!git add .; git commit"
cfp = cat-file -p
cfs = cat-file -s
cft = cat-file -t
cl = clone
clb = clone --bare
co = checkout
D = branch -D
dc = diff --cached
dh1 = diff HEAD~1
di = diff
f = fetch
files = "!git diff --name-status $1^ $1 #"
fv = fetch -v
i = init
ib = init --bare
l = log
lol = log --oneline --graph --decorate
ls = log --stat
lsf = ls-files
lsr = ls-remote
m = merge
mb = merge-base
nants = describe --tags HEAD
pa = patch
po = "!branch=$(git symbolic-ref HEAD | sed 's/refs\\/heads\\///'); git push origin $branch #"
pom = push origin master
rb = rebase
rbi = rebase -i
rev = revert
rh = reset --hard
rl = reflog
rs = reset --soft
st = status
tan = tag -a
tm = "!git reset HEAD@{$1} #"
undo = revert HEAD
wb = "!exist=$(git branch -a | grep $1 | wc -l); if [ $exist -eq 0 ] ; then git branch $1; git reset --hard HEAD^; git checkout $1; else git reset --soft HEAD^; git stash; git checkout $1; git stash pop; fi #"
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
# FREEBSD lg = "! git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | more -R"
[merge]
tool = vimdiff