Last active
December 30, 2024 09:37
-
-
Save tomaszprasolek/d742cc607666bd635a5226a008fd3d84 to your computer and use it in GitHub Desktop.
My Git AutoHotKey script.
This file contains hidden or 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
#SingleInstance force | |
#If WinActive("ahk_class CASCADIA_HOSTING_WINDOW_CLASS") || WinActive("ahk_exe Code.exe") | |
::grc::git rebase --continue | |
::gmt::git mergetool | |
::gpf::git push --force-with-lease | |
::gch::git checkout | |
::gchg::git checkout GH/ | |
::gcht::git checkout TNZ/ | |
::gcm::git checkout main | |
::gri::git rebase -i HEAD~ | |
::gc::git commit | |
::gca::git commit --amend | |
::gcan::git commit --amend --no-edit | |
::gs::git status | |
::gpu::git push -u origin | |
::gpd::git push -d origin | |
::gd::git diff | |
::gdd::git diff --word-diff | |
::gdc::git diff --cached | |
::gl::git lgg | |
::gll::git lg | |
::gb::git branch | |
::ga::git add . | |
::glg::git lg --graph | |
::gf::git fetch --all --prune | |
::gm::git merge --no-ff -e -m "a" - | |
::gpp::git pull; git fetch --all --prune; | |
::gun::git checkout -b update-nugets; git add .; git commit -m"Update nugets"; git push; az repos pr create --delete-source-branch true --reviewers "[ASAI]\Backend_reviewers" --auto-complete true --open --title "Update nugets" ; | |
::ah::git addhashtotasknumber | |
::dcu::docker-compose up --build -d | |
::dcd::docker-compose down -v | |
::spr::dnt switch-to-projects | |
::spa::dnt switch-to-packages | |
::pur::$title = 'UpdateNugets'; $prId = (az repos pr create --delete-source-branch true --reviewers "[ASAI]\Backend_reviewers" --auto-complete true --open --title "$title" | ConvertFrom-Json).codeReviewId; az repos pr update --id $prId --merge-commit-message "Merged PR $prId" | |
::tc::dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura | |
::tr::reportgenerator -reports:"coverage.cobertura.xml" -targetdir:"coveragereport" -reporttypes:Html | |
::ts::start .\coveragereport\index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment