-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
52 lines (52 loc) · 1.76 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
52
[core]
quotepath = false
excludesfile = ~/.gitignore
[color]
ui = auto
[color "branch"]
current = green reverse
local = green
remote = yellow
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
# Fancy logging (https://github.com/garybernhardt/dotfiles/)
# h = head
# hp = head with patch
# r = recent commits, only current branch
# ra = recent commits, all reachable refs
# l = all commits, only current branch
# la = all commits, all reachable refs
head = !git r -1
h = !git head
hp = "!. ~/.githelpers && show_git_head"
r = !GIT_NO_PAGER=1 git l -30
ra = !git r --all
l = "!. ~/.githelpers && pretty_git_log"
la = !git l --all
s = status -sb
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
latest = for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short) [%(committername)]'
amend = commit --amend --reuse-message=HEAD
hide = update-index --assume-unchanged
unhide = update-index --no-assume-unchanged
fix = "!f() { ${EDITOR} `git diff --name-only`; }; f"
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
lg = !git --no-pager log --pretty=tformat:'%Cred%h%Creset -%Cblue%d%Creset %s %Cgreen(%cr)%Creset %C(yellow)<%an>%Creset' --abbrev-commit --date=relative --reverse
[push]
default = tracking
[branch]
autosetupmerge = true
[credential]
helper = osxkeychain
[blame]
date = short
[include]
path = ~/.gitconfig.local