-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
executable file
·47 lines (31 loc) · 2.12 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
[user]
name = Steve Lefevre
email = lefevre.10@osu.edu
[push]
default = simple
[core]
fileMode = false
[alias]
pretty-log = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
introduced = log --diff-filter=A --
unstage = reset
branch-excise = ! "gitbranchexcise () { git branch -D $1; git push origin --delete $1; }; gitbranchexcise"
overview = ! "git rev-parse --show-toplevel; git remote -v; git branch; git status; git rev-parse HEAD;"
pwd = ! "git rev-parse --show-toplevel; git remote -v; "
purify = ! "gitpurify() { git reset --hard; git clean -d -f; }; gitpurify"
unstage = reset
branch-grow = ! "gitbranchgrow() { git checkout -b $1; git push ${2:-origin} $1; }; gitbranchgrow"
remove = ! "gitremove() { git diff --diff-filter=D --name-only -z | xargs -0 git rm; }; gitremove"
forget = ! "gitforget() { git diff --diff-filter=D --name-only -z | xargs -0 git rm; }; gitforget"
staged = diff --cached
ignored = status --ignored
alias = config --get-regexp ^alias\\.
aliases = config --get-regexp ^alias\\.
ignore-filemode = config core.fileMode false
smart-diff = ! "gitsmartdiff() { git diff $2 --stat=$COLUMNS --stat-graph-width=$(($COLUMNS/5)); }; gitsmartdiff"
commit-ignore-whitespace = ! "gitcommitignorewhitespace() { git diff -w --no-color | git apply --cached --ignore-whitespace; }; gitcommitignorewhitespace"
svn-ignore = ! "gitsvnignore() { grep -v svn .gitignore | xargs -I % svn propset svn:ignore % . ; }; gitsvnignore"
svn-delete = ! "gitsvndelete() { svn st | grep ^! | cut -b9- | sed 's/^/\"/;s/$/\"/' | xargs svn rm ; }; gitsvndelete"
svn-commit = ! "gitsvncommit() { svn add --force . ; svn commit -m 'Updates from git' ; }; gitsvncommit"
svn-push = ! "gitsvnpush() { svn update .; git svn-delete; git svn-commit ; }; gitsvnpush"
svn-commit2 = ! "gitsvncommit2() { svn st | grep ^! | awk '{print " --force "$2}' | xargs svn rm; svn add --force . ; svn commit -m \"Updates from git\"; }; gitsvncommit2"