-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgitconfig
51 lines (44 loc) · 1.28 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
[color]
status = auto
branch = auto
ui = auto
[color "diff"]
old = red
new = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
editor = vim
excludesfile = ~/.gitignore_global
[alias]
ci = commit
st = status
co = checkout
cl = clone
pu = git push -u origin master
hist = log --pretty=format:\"%h %ad | %C(bold blue)[%an]%Creset %s%C(yellow)%d%Creset\" --graph --date=short
br = branch
type = cat-file -t
dump = cat-file -p
unstage = reset HEAD # unstage a file
uncommit = reset --soft HEAD~1 # go back one commit
r = remote -v # show remotes
rc = rebase --continue # continue rebase
rs = rebase --skip # skip rebaseo
b = branch -v # verbose branch info
ss = stash
sl = stash list
sa = stash apply # apply stash, changes restored
sd = stash drop # drops stash, changes lost
sp = stash pop # applies and drops stash
permission-reset = "!git diff -p | grep -E \"^-E(diff|old mode|new mode)\" | sed -e \"s/^old/NEW/;s/^new/old/;s/^NEW/new/\" | git apply"
[init]
templatedir = ~/.git_template
[push]
default = tracking
[include]
path = ~/.gitconfig.user
[diff]
algorithm = patience