Last active
January 23, 2024 18:46
-
-
Save OsirisTerje/e9d06c627405f576e6ebf85e2c09f3c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
a = !git config --get-regexp alias | |
b = !git switch -c | |
br = !git switch -c origin/ | |
s = !git status | |
sw = !git switch | |
swc = !git switch -c | |
swd = !git switch --detach | |
m = !git switch main | |
p = !git push | |
rv = !git remote -v | |
co = !git restore | |
ci = !git add * && git commit -m | |
r = !git rebase | |
rm = !git r master | |
rom = !git r origin master | |
branchname = !git rev-parse --abbrev-ref HEAD | |
pub = !git push -u origin $(git branchname) | |
bl = !git branch --all | |
pr = "!f() { exec vsts code pr \"$@\"; }; f" | |
repo = "!f() { exec vsts code repo \"$@\"; }; f" | |
log1 = !git log --oneline | |
prb = !git pr create --target-branch | |
prm = !git prb master --query pullRequestId | |
prmc = !git prm --auto-complete | |
prl = !git pr list --output table | |
prc = !git pr update --query status --auto-complete on --id | |
url = !git config --get remote.origin.url | |
execurlpr = "!f() { exec start msedge \"$@/pullrequests?_a=mine\"; } ; f" | |
execurl = "!f() { exec start msedge \"$@\"; } ; f" | |
webpr = !git execurlpr $(git url) | |
web = !git execurl $(git url) | |
prs = !git pr show --query status --id | |
ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi" | |
ignorevs = !git ignore visualstudio >> .gitignore | |
ignorepy = !git ignore python >> .gitignore | |
ignoreangcache = "!f() { echo .angular/cache/ ;}; f" | |
ignoreang = !git ignoreangular && git ignoreangcache >> .gitignore | |
ignorerider = !git ignore rider >> .gitignore | |
updategitignore = "!f() { exec ifix gitignore -m -f;}; f" | |
b2texec = "!f() { git tag \"$@\" refs/heads/\"$@\" && git branch -d \"$@\"; }; f" | |
b2t = !git tag $@ refs/heads/$@ && git branch -D $@ && : | |
t2b = !git switch --detach $@ && git switch -c $@ && git tag -d $@ && : | |
listgits = !python listgits $@ | |
lg = !git listgits $@ | |
rclean = !git reflog expire --expire-unreachable=now --all && git gc --prune=now | |
retriggerchecks = "!f() { git commit -m\"Retriggering checks\" --allow-empty && git push ;}; f" | |
rtc = "!f() { git retriggerchecks ;}; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment