-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
80 lines (69 loc) · 1.74 KB
/
gitconfig
File metadata and controls
80 lines (69 loc) · 1.74 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
80
[user]
name = Josh Harris
email = harrisjb1@gmail.com
[advice]
#statusHints = false
[alias]
aa = add --all
amend = commit --amend
b = branch
br = branch --color --verbose
branchdate = !git for-each-ref --sort='-authordate' --format='%(refname)%09%(authordate)' refs/heads | sed -e 's-refs/heads/--'
c = commit
changes=diff --name-status -r
ci = commit -v
co = checkout
dc = diff --cached
df = diff
di = diff
diffstat=diff --stat -r
head = !git l -1
h = !git head
ign = ls-files -o -i --exclude-standard
la = !git l --all
lc = log ORIG_HEAD.. --stat --no-merges --pretty=format:'%Cred%h%Creset %Cgreen(%cr) %C(bold blue)<%an>:\n%C(yellow)%d%Creset %s %Creset\n'
l = "!git_pretty_log"
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lg = log -p
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lp = log -p
ls = ls-files
pom = push origin master
pullff = pull --ff-only
ra = !git r --all
r = !git l -30
s = status -s
st = status
w = whatchanged
[color "branch"]
current = dim yellow reverse
local = blue
remote = green
commithash = green
[branch]
# set up git pull to do a rebase instead of merge
#autosetuprebase = always
[color]
diff = auto
status = auto
branch = auto
ui = auto
[core]
excludesfile = ~/.gitignore_global
editor = /usr/bin/vim
pager = less -r
# some systems set $LESS, which causes git to refuse to override.
[diff]
tool = vimdiff
# Detect renames of files
renames = true
[grep]
lineNumber = true
extendedRegexp = true
[interactive]
singlekey = true
[merge]
tool = vimdiff
[push]
default = upstream