-
Notifications
You must be signed in to change notification settings - Fork 4
/
gitconfig
47 lines (44 loc) · 1.22 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
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
st = status
ci = commit
br = branch
co = checkout
unfuck = checkout
df = diff
lg = log -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
unstage = reset HEAD
branches = !git-branches
put = push origin HEAD
rpo = remote prune origin
cob = !sh -c 'git co -b "$0"'
cor = !sh -c 'git co -t "$0"'
rmbr = !sh -c 'git branch -D "$0" && git push origin ":$0"'
smerge = merge --squash
dt = !sh -c 'git tag -d "$0" && git push origin :refs/tags/$0'
release-tag = !sh -c 'TAG=$0-`date +"%Y%m%d%H%M%S"` && echo "Creating Tag: $TAG" && git tag $TAG -am \"$1\" && git push --tags origin master'
ig = update-index --assume-unchanged
unig = update-index --no-assume-unchanged
[core]
editor = pico
[branch "master"]
remote = origin
merge = refs/heads/master
[merge]
tool = opendiff