-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
55 lines (47 loc) · 1.71 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
53
54
55
[user]
email = [email protected]
name = David Farrington
signingkey = E4468B6958E517F0
[alias]
dish = diff --staged
hash = rev-parse --short HEAD
po = push origin
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
graph = log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s" --oneline
type = cat-file -t
dump = cat-file -p
alias = config --get-regexp alias
squash = rebase -i origin/master
udiff = diff HEAD...origin/master
rssub = submodule update --init
rs = "!f(){ git fetch -p && git reset --hard origin/`git rev-parse --abbrev-ref HEAD`; }; f"
cb = "!f(){ git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d; }; f"
fu = "!f(){ git commit -a --fixup HEAD && git push origin `git rev-parse --abbrev-ref HEAD`; }; f"
am = "!f(){ git add -u && git commit --amend && git push origin `git rev-parse --abbrev-ref HEAD` --force; }; f"
boo = "!f(){ git add -u && git commit --amend && git push origin --force; }; f"
su = "!f(){ git branch --set-upstream-to=origin/`git rev-parse --abbrev-ref HEAD` `git rev-parse --abbrev-ref HEAD`; }; f"
wip = "!f(){ git status --porcelain | awk '{ print $2 }'; }; f"
prb = "!f(){ git pull --rebase origin `git rev-parse --abbrev-ref HEAD`}; f"
[push]
default = current
[pull]
default = current
[rebase]
autosquash = true
[core]
excludesfile = '~/.gitignore'
[url "ssh://[email protected]/"]
insteadOf = https://github.com/
[commit]
# gpgsign = true
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true