This directory contains standalone batch files that provide git aliases and functions converted from zsh to Windows batch format.
- The
_bashrc.cmdfile automatically adds this directory to your PATH - All git aliases are defined using
doskeycommands - Complex functions are implemented as standalone
.batfiles
g→gitgu→git-update.bat(fetch + pull)gs→git-status.bat(fetch + status + worktree list)gd→git diffgd0→git diff HEAD~0gd1→git diff HEAD~1ga→git addgr→git restoregrr→git remotegrrs→git remote -v showgrs→git restore --stagedgra→git restore --staged . && git restore .grA→git-restore-all.bat(restore all + clean)gf→git fetch -pgft→git fetch --tags -fgc→git commitgca→git commit --amendgch→git-checkout.bat(fetch + checkout)gcl→git clonegl→git logglsa→git ls-remote --refsglsb→git ls-remote --refs --headsgls→git-ls-remote-formatted.bat(formatted remote branches)glst→git ls-remote --refs --tags
gb→git branchgt→git taggbv→git branch -vvgbvr→git branch -vv -rgbc→git branch --show-currentgblg→git branch -vv | grep gone(gone branches)gbD→git branch -D $(gblg)(delete gone branches)gblb→git branch -vv | grep behind(behind branches)
gpl→git pullgplo→git pull origingph→git pushgpho→git push -u origingpht→git push --tagsgphf→git push --force
gm→git mergegma→git merge --abortgrb→git rebasegrbc→git rebase --continuegrba→git rebase --abort
gcp→git cherry-pickgcpa→git cherry-pick --abortgcpc→git cherry-pick --continue
gst→git stashgsta→git stash applygstp→git stash popgstl→git stash listgsts→git stash showgstd→git stash drop
gw→git worktreegwl→git worktree listgwa→git worktree addgwm→git worktree movegwr→git worktree removegwp→git worktree prune
gprl→git branch -vv | grep __PR-(PR branches)gprD→git branch -D $(gprl)(delete PR branches)
gbU→git-branch-update-all.bat(update all branches)gdn→git-diff-n.bat(diff n commits back)gwA→git-worktree-add.bat(add worktree with naming)gwch→git-worktree-checkout.bat(switch worktrees)gpr→git-pull-request.bat(fetch PR branches)
After loading _bashrc.cmd, you can use these aliases from any directory:
gs # git status with fetch and worktree list
gu # git update (fetch + pull)
gbU # update all branches
gdn 2 # show diff from 2 commits ago
gwA ../feature-branch # add worktree for feature-branch
gpr 123 # fetch and checkout PR #123git-update.bat- Fetch and pullgit-status.bat- Fetch, status, and worktree listgit-restore-all.bat- Restore all changes and cleangit-checkout.bat- Fetch and checkoutgit-branch-update-all.bat- Update all branchesgit-diff-n.bat- Show diff from n commits backgit-worktree-add.bat- Add worktree with naminggit-worktree-checkout.bat- Switch between worktreesgit-pull-request.bat- Fetch and checkout PR branchestest-git-aliases.bat- Test script to verify setup