-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
41 lines (35 loc) · 1.41 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
[push]
default = simple
[alias]
cm = commit -m
unstage = reset HEAD --
s = status -s
am = commit --amend --date=now
ai = add -i
co = checkout
cob = checkout -b
ci = !git checkout $(git branch | fzf | xargs)
br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
rebase-feature = "!f() { git rebase -i `git merge-base --fork-point master`; }; f"
update-feature = "!f() { git checkout master && git pull && git checkout - && git rebase master; }; f"
wt = worktree
last = log -1 HEAD --stat
l = !git log --pretty=format:\"%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) [%an]\" --abbrev-commit -30
d = diff
ds = diff --stat
wdiff = diff --word-diff
mt = "!f() { git merge --no-commit --no-ff \"$1\"; git merge --abort; echo \"Merge aborted\"; };f"
la = "!git config -l | grep alias | cut -c 7-"
purge = "!f() { git branch --v | grep '\\[gone\\]' | awk '{print $1}' | xargs git branch -D;};f"
p = "!f() { git diff --staged --binary > ~/.git-patches/$1.patch; }; f"
pl = "!f() { ls ~/.git-patches; }; f"
pa = "!f() { git apply ~/.git-patches/$1.patch; }; f"
[color]
ui = auto
[core]
excludesfile = ~/.gitignore_global
editor = vim
[include]
path = ~/.gitconfig_local
[user]
name = Chris Sullivan