-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
65 lines (63 loc) · 1.59 KB
/
gitconfig
File metadata and controls
65 lines (63 loc) · 1.59 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
[user]
name = Jose Ricardo
email = zehzinho@gmail.com
[color]
status = auto
branch = auto
interactive = auto
diff = auto
[ui]
color = auto
[alias]
pullr = !git pull --rebase
sn = !git status --short | nl -w 2
s = !git status --short
sno = !git status --short -uno
co = checkout
ci = commit -v
g = grep -i
cia = commit -v --amend
rh = reset HEAD
d = diff --color-words
dc = diff --cached
stash-unstaged = stash --keep-index
wcs = whatchanged --stat
mis = merge -s recursive -Xignore-space-change
# From: https://github.com/garybernhardt/dotfiles/blob/master/.gitconfig
# Fancy logging.
# h = head
# hp = head with patch
# r = recent commits, only current branch
# ra = recent commits, all reachable refs
# la = all commits, all reachable refs
head = !git l -1
h = !git head
hp = "!source ~/.githelpers && show_git_head"
r = !git l -30
ra = !git r --all
# to see the lines that changed, just use `git l -p`
l = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
la = !git l --all
spp = "!git stash && git pullr && git stash pop"
contrib-hist = "!git shortlog -s -n -e"
set-upstream = !git branch -u origin/$(git symbolic-ref --short HEAD)
pushup = !git push upstream
pullup = !git pullr upstream
pfn = !git push --force --no-verify
[merge]
tool = vimdiff
[grep]
lineNumber = true
[core]
whitespace = cr-at-eol
# autocrlf = input
[http]
sslVerify = false
[push]
default = current
[help]
autocorrect = 1
[github]
user = josericardo
[rerere]
enabled = 0