forked from ClearCarbon/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
47 lines (45 loc) · 1.51 KB
/
gitconfig
File metadata and controls
47 lines (45 loc) · 1.51 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
[user]
name = NAME
email = EMAIL
[alias]
f = fetch -p --all
r = remote -v
b = branch -avv
s = status -sb
g = grep --break --heading --line-number
co = checkout
bm = branch -avv --merged
bl = blame -MCw
ci = commit
di = diff --ignore-space-at-eol -b -w --ignore-blank-lines --word-diff
dc = diff --ignore-space-at-eol -b -w --ignore-blank-lines --word-diff --cached
ds = diff --ignore-space-at-eol -b -w --ignore-blank-lines --word-diff --staged
up = "!git remote update -p; git merge --ff-only @{u}"
ls = log --pretty=format:'%C(yellow)%h %C(blue)%ad%C(red)%d %C(reset)%s%C(green) [%cn]' --decorate --date=short
lsv = log --pretty=format:'%C(yellow)%h %C(blue)%ad%C(red)%d %C(reset)%s%C(green) [%cn]' --decorate --date=short --numstat
cia = commit --amend
mod = "!git status --porcelain -uno | awk '{print $2}'"
staged = diff --name-only --cached
pom = pull --ff-only origin master
pum = pull --ff-only upstream master
active = for-each-ref --sort=-committerdate --format='%(refname:short) %(committerdate:short)'
alias = config --get-regexp alias
sup = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
forcepull = "!git remote update -p; git reset --hard @{u}"
[color]
diff = auto
status = auto
branch = auto
[core]
excludesfile = HOME/.gitignore
autocrlf = input
editor = vim
[format]
pretty = %C(yellow)%h %C(blue)%ad%C(red)%d %C(reset)%s%C(green) [%cn]
[github]
user = GITHUB
[push]
default = simple
[grep]
extendregexp = true
linenumber = true