You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
2.0 KiB
Cheetah
67 lines
2.0 KiB
Cheetah
2 years ago
|
{{ if lookPath "git" -}}
|
||
12 years ago
|
[core]
|
||
|
editor = vim
|
||
4 years ago
|
excludesfile = ~/.config/git/ignore
|
||
6 years ago
|
quotepath = false
|
||
3 years ago
|
commitGraph = true
|
||
12 years ago
|
[color]
|
||
|
branch = auto
|
||
|
diff = auto
|
||
|
interactive = auto
|
||
|
status = auto
|
||
|
ui = auto
|
||
|
[user]
|
||
|
name = Buddy Sandidge
|
||
8 years ago
|
email = git@buddy.wtf
|
||
12 years ago
|
[alias]
|
||
|
br = branch
|
||
|
ci = commit
|
||
|
co = checkout
|
||
12 years ago
|
cp = cherry-pick
|
||
4 years ago
|
cw = diff --color-words
|
||
|
ccw = diff --color-words --cached
|
||
10 years ago
|
df = diff --ignore-space-change
|
||
|
dfw = diff --ignore-space-change --color-words
|
||
|
dfc = diff --ignore-space-change --cached
|
||
|
dfcw = diff --ignore-space-change --color-words --cached
|
||
|
dmw = diff --ignore-space-change --color-words master
|
||
|
dmn = diff master --name-only
|
||
12 years ago
|
st = status -sb
|
||
10 years ago
|
dm = diff master
|
||
|
dmcw = diff master --color-words
|
||
10 years ago
|
p = !git fetch --all
|
||
12 years ago
|
sup = submodule update
|
||
2 years ago
|
com = "!bash -c 'if [[ $(git rev-parse --verify main 2>/dev/null) ]] ; then git checkout main ; else git checkout master ; fi'"
|
||
12 years ago
|
cod = checkout develop
|
||
11 years ago
|
pod = push origin develop
|
||
12 years ago
|
file = show --pretty="format:" --name-only
|
||
|
glog = !git log --pretty=oneline | grep
|
||
|
dpull = !git svn fetch && git svn rebase
|
||
|
dcommit = svn dcommit
|
||
|
lg = log --graph --pretty=format:'%Cred%h%Creset %s%Cred%d%Creset %Cgreen(%cr by %cN)%Creset'
|
||
12 years ago
|
fix-last-commit = commit --amend
|
||
|
flc = fix-last-commit
|
||
12 years ago
|
rmbr = push origin --delete
|
||
12 years ago
|
# http://durdn.com/blog/2012/11/22/must-have-git-aliases-advanced-examples/
|
||
|
list = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
|
||
|
ls = list
|
||
|
long-list = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
|
||
|
ll = long-list
|
||
|
list-date-stap = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
|
||
|
lds = list-date-stap
|
||
8 years ago
|
[push]
|
||
|
default = simple
|
||
4 years ago
|
[include]
|
||
|
path = ~/.config/git/config-git.buddy.wtf
|
||
|
path = ~/.config/git/config-git.xbudex.com
|
||
4 years ago
|
path = ~/.config/git/config-hellotech
|
||
4 years ago
|
[init]
|
||
|
defaultBranch = main
|
||
3 years ago
|
[receive]
|
||
|
advertisePushOptions = true
|
||
|
[gc]
|
||
|
writeCommitGraph = true
|
||
3 years ago
|
[fetch]
|
||
|
prune = true
|
||
2 years ago
|
{{- end }}
|