-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitconfig
47 lines (46 loc) · 1.65 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
[alias]
recent = branch --sort=-committerdate
dif = diff
dc = diff --cached
fp = fetch -p
pr = pull -r
st = status
ss = status -s
co = checkout
ci = commit
amend = commit --amend
amendall = commit -a --amend
wip = commit -m "WIPWIPWIPWIPWIPWIPWIPWIP"
wipall = !git add :/ && git commit -am "WIPWIPWIPWIPWIPWIPWIPWIP"
fix = commit -m "fixup"
fixall = !git add :/ && git fix
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all --date=local
l = log --graph --decorate --pretty=oneline --abbrev-commit
la = log --graph --decorate --pretty=oneline --abbrev-commit --all --date=local
ignored = ls-files -o -i --exclude-standard
sub = submodule
set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
lf = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
ltag = describe --tags --abbrev=0
lt = git log --tags --simplify-by-decoration
ag = "!git log -G\"$1\" --branches --all #"
# OSX (on linux may need to use this syntax: showStashes() {}; showStashes)
show-stashes = "!function showStashes { \
git stash list | awk -F: '{ printf \"\\n\\n\\n==========\\n\"; print $0; print \"==========\\n\\n\"; system(\"git stash show -p \" $1); }'; \
}; showStashes"
; root = !pwd ; this is hacky, use rev-parse
root = rev-parse --show-toplevel
[core]
pager = less -x4
editor = /usr/bin/vim
excludesfile = ~/.gitignore
[rerere]
enabled = true
[remote "origin"]
prune = true
[user]
email = [email protected]
name = mitochondrion
[init]
defaultBranch = main