-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
47 lines (44 loc) · 2.94 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
[alias]
#pushdev = !git push --set-upstream origin "`git branch --no-color 2>/dev/null | grep '*' | sed -e 's/\\* //'`:dev/tcoussot/`git branch --no-color 2>/dev/null | grep '*' | sed -e 's/\\* //'`"
pushdev = !git push fork "`git branch --no-color 2>/dev/null | grep '*' | sed -e 's/\\* //'`:dev/`git branch --no-color 2>/dev/null | grep '*' | sed -e 's/\\* //'`"
#pd = !git push -u fork "`git branch --no-color 2>/dev/null | grep '*' | sed -e 's/\\* //'`:dev/`git branch --no-color 2>/dev/null | grep '*' | sed -e 's/\\* //'`"
pd = !git push -u fork "`git branch --no-color 2>/dev/null | grep '*' | sed -e 's/\\* //'`"
#pushdev = !git push fork
pdo = !git push --set-upstream origin "`git branch --no-color 2>/dev/null | grep '*' | sed -e 's/\\* //'`:tco/`git branch --no-color 2>/dev/null | grep '*' | sed -e 's/\\* //'`"
shit = !git add . && git commit -m
#setremote = !git remote add fork "`git remote get-url origin | sed -re 's|^(.*):(.*)/(.*)\\.git$|\\1:tcoussot/\\2-\\3.git|'`"
setremote = !git remote add fork "`git remote get-url origin | sed -re 's|^(.*):(hns-platform/)?([\\w-]+/)?(.*git)$|\\1:tcoussot/\\3\\4|' | sed -re 's|(.*tcoussot)/((.+)/)(.+git)|\\1/\\3-\\4|'`" && git remote get-url fork
amend = commit --amend
fix = commit --all --amend --no-edit
fixp = !git commit --all --amend --no-edit && git push -f
bump = !git add . && git commit -m 'bump dependencies'
undo = !git reset --soft HEAD^
#vomit = !git commit -m \"$(head /dev/urandom -c32)\"
vomit = !head /dev/urandom | tr "\\0" 0 | git commit --file=-
lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lgb = log --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
#fuck = !sh -c \"git commit -m '$(curl -s http://whatthecommit.com/index.txt)'\"
fuck = !curl -s http://whatthecommit.com/index.txt | git commit --file=-
troll = !git commit -m \"cf commit $(git log --format=format:%H | shuf | head -n1)\"
stat = diff --stat
ld = diff HEAD~1
ldd = !git diff HEAD~1 | delta
bvv = branch -vv
putsch = push --force
delta = !git diff | delta
stashdiff = !git stash show -p | delta
sd = !git stash show -p | delta
chuck = !git commit -am \"$(curl -s \"https://api.icndb.com/jokes/random?escape=javascript\" | jq -r \".value.joke\")\"
#chuck = !bash -c \"git commit -am \\\"$(curl -s \"https://api.icndb.com/jokes/random?escape=javascript\" | jq -r \".value.joke\")\\\"\"
#unstage = reset HEAD
unstage = reset HEAD --
showd = !git show $1 | delta
[delta]
number = true
dark = true
side-by-side = true
navigate = true
#hyperlinks = true
[fetch]
prune = true
pruntTags = true