-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
62 lines (61 loc) · 1.88 KB
/
.gitconfig
File metadata and controls
62 lines (61 loc) · 1.88 KB
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
56
57
58
59
60
61
62
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[color]
ui = true
[color "diff"]
whitespace = red reverse
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[alias]
amend = commit --amend --no-edit
basebr = "!git rev-parse --abbrev-ref @{upstream} | sed 's@^.*/@@'"
curr = symbolic-ref -q HEAD --short
purr = pull --rebase
main="!main() { if [ \"`git br -l main`\" ]; then echo 'main'; else echo 'master'; fi };main"
fresh = "!fresh() { curr=`git curr`;main=`git main`;git stash;git co $main;git purr;git co $curr; git rebase $main; };fresh"
last = "!last() { git for-each-ref --sort=-committerdate refs/heads/; };last | sed -e 's/^.*refs\\/heads\\/\\(.*\\)$/\\1/g' | head -5"
masterp = !git co master && git pull --rebase
search = "log --all --grep"
whoami = "!whoami() { echo \"`git config --get user.name` <`git config --get user.email`>\"; };whoami"
tagq = "!tagq() { git log --before=$1 --tags --simplify-by-decoration --pretty='format:%ai %d' | grep 'tag:' | head -1 | sed -e 's/.*(tag: \\([v0-9\\.]*\\).*/\\1/g'; }; tagq"
at = config user.email
st = status
ci = commit
bl = blame
br = branch
co = checkout
cpc = cherry-pick --continue
df = diff
dc = diff --cached
ds = diff --staged
l = !git --no-pager log
lg = log -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
[user]
name = Kurt Ruppel
useConfigOnly = true
[grep]
extendRegexp = true
[push]
default = current
autoSetupRemote = true
[init]
defaultBranch = main