|
| 1 | +# Git Alias Documentation |
| 2 | + |
| 3 | +| Alias | Definition | |
| 4 | +|--------|-------------| |
| 5 | +| `g` | `git $args` | |
| 6 | +| `ga` | `git add $args` | |
| 7 | +| `gaa` | `git add --all $args` | |
| 8 | +| `gapa` | `git add --patch $args` | |
| 9 | +| `gau` | `git add --update $args` | |
| 10 | +| `gb` | `git branch $args` | |
| 11 | +| `gba` | `git branch -a $args` | |
| 12 | +| `gbda` | Script to delete merged branches except main branches. | |
| 13 | +| `gbl` | `git blame -b -w $args` | |
| 14 | +| `gbnm` | `git branch --no-merged $args` | |
| 15 | +| `gbr` | `git branch --remote $args` | |
| 16 | +| `gbs` | `git bisect $args` | |
| 17 | +| `gbsb` | `git bisect bad $args` | |
| 18 | +| `gbsg` | `git bisect good $args` | |
| 19 | +| `gbsr` | `git bisect reset $args` | |
| 20 | +| `gbss` | `git bisect start $args` | |
| 21 | +| `gc` | `git commit -v $args` | |
| 22 | +| `gc!` | `git commit -v --amend $args` | |
| 23 | +| `gca` | `git commit -v -a $args` | |
| 24 | +| `gca!` | `git commit -v -a --amend $args` | |
| 25 | +| `gcam` | `git commit -a -m $args` | |
| 26 | +| `gcan!`| `git commit -v -a --no-edit --amend $args` | |
| 27 | +| `gcans!`| `git commit -v -a -s --no-edit --amend $args` | |
| 28 | +| `gcb` | `git checkout -b $args` | |
| 29 | +| `gcd` | `git checkout develop $args` | |
| 30 | +| `gcf` | `git config --list $args` | |
| 31 | +| `gcl` | `git clone --recursive $args` | |
| 32 | +| `gclean`| `git clean -df $args` | |
| 33 | +| `gcm` | Script to checkout the main branch. | |
| 34 | +| `gcmsg`| `git commit -m $args` | |
| 35 | +| `gcn!` | `git commit -v --no-edit --amend $args` | |
| 36 | +| `gco` | `git checkout $args` | |
| 37 | +| `gcount`| `git shortlog -sn $args` | |
| 38 | +| `gcp` | `git cherry-pick $args` | |
| 39 | +| `gcpa` | `git cherry-pick --abort $args` | |
| 40 | +| `gcpc` | `git cherry-pick --continue $args` | |
| 41 | +| `gcs` | `git commit -S $args` | |
| 42 | +| `gd` | `git diff $args` | |
| 43 | +| `gdca` | `git diff --cached $args` | |
| 44 | +| `gdt` | `git diff-tree --no-commit-id --name-only -r $args` | |
| 45 | +| `gdw` | `git diff --word-diff $args` | |
| 46 | +| `Get-Git-MainBranch`| Script to determine the main branch of the repository. | |
| 47 | +| `gf` | `git fetch $args` | |
| 48 | +| `gfa` | `git fetch --all --prune $args` | |
| 49 | +| `gfo` | `git fetch origin $args` | |
| 50 | +| `gg` | `git gui citool $args` | |
| 51 | +| `gga` | `git gui citool --amend $args` | |
| 52 | +| `ggf` | Script to force-push the current branch. | |
| 53 | +| `ggfl` | Script to force-push with lease the current branch. | |
| 54 | +| `ggl` | Script to pull changes from origin for the current branch. | |
| 55 | +| `ggp` | Script to push the current branch to origin. | |
| 56 | +| `ggsup`| Script to set upstream for the current branch. | |
| 57 | +| `ghh` | `git help $args` | |
| 58 | +| `gignore`| `git update-index --assume-unchanged $args` | |
| 59 | +| `gignored`| Script to list ignored files. | |
| 60 | +| `gl` | `git pull $args` | |
| 61 | +| `glg` | `git log --stat --color $args` | |
| 62 | +| `glgg` | `git log --graph --color $args` | |
| 63 | +| `glgga`| `git log --graph --decorate --all $args` | |
| 64 | +| `glgm` | `git log --graph --max-count=10 $args` | |
| 65 | +| `glgp` | `git log --stat --color -p $args` | |
| 66 | +| `glo` | `git log --oneline --decorate --color $args` | |
| 67 | +| `glog` | `git log --oneline --decorate --color --graph $args` | |
| 68 | +| `gloga`| `git log --oneline --decorate --color --graph --all $args` | |
| 69 | +| `glol` | `git log --graph --pretty=format:... $args` | |
| 70 | +| `glola`| `git log --graph --pretty=format:... --all $args` | |
| 71 | +| `glum` | Script to pull upstream changes for the main branch. | |
| 72 | +| `gm` | `git merge $args` | |
| 73 | +| `gmom` | Script to merge origin/main branch. | |
| 74 | +| `gmt` | `git mergetool --no-prompt $args` | |
| 75 | +| `gmtvim`| `git mergetool --no-prompt --tool=vimdiff $args` | |
| 76 | +| `gmum` | Script to merge upstream/main branch. | |
| 77 | +| `gp` | `git push $args` | |
| 78 | +| `gpd` | `git push --dry-run $args` | |
| 79 | +| `gpf` | `git push --force-with-lease $args` | |
| 80 | +| `gpf!` | `git push --force $args` | |
| 81 | +| `gpoat`| Script to push all branches and tags to origin. | |
| 82 | +| `gpristine`| Script to reset and clean the repository. | |
| 83 | +| `gpsup`| Script to push the current branch and set upstream. | |
| 84 | +| `gpu` | `git push upstream $args` | |
| 85 | +| `gpv` | `git push -v $args` | |
| 86 | +| `gr` | `git remote $args` | |
| 87 | +| `gra` | `git remote add $args` | |
| 88 | +| `grb` | `git rebase $args` | |
| 89 | +| `grba` | `git rebase --abort $args` | |
| 90 | +| `grbc` | `git rebase --continue $args` | |
| 91 | +| `grbi` | `git rebase -i $args` | |
| 92 | +| `grbm` | Script to rebase the main branch. | |
| 93 | +| `grbs` | `git rebase --skip $args` | |
| 94 | +| `grh` | `git reset $args` | |
| 95 | +| `grhh` | `git reset --hard $args` | |
| 96 | +| `grmv` | `git remote rename $args` | |
| 97 | +| `grrm` | `git remote remove $args` | |
| 98 | +| `grs` | `git restore $args` | |
| 99 | +| `grset`| `git remote set-url $args` | |
| 100 | +| `grt` | Script to change directory to the repository root. | |
| 101 | +| `gru` | `git reset -- $args` | |
| 102 | +| `grup` | `git remote update $args` | |
| 103 | +| `grv` | `git remote -v $args` | |
| 104 | +| `gsb` | `git status -sb $args` | |
| 105 | +| `gsd` | `git svn dcommit $args` | |
| 106 | +| `gsh` | `git show $args` | |
| 107 | +| `gsi` | `git submodule init $args` | |
| 108 | +| `gsps` | `git show --pretty=short --show-signature $args` | |
| 109 | +| `gsr` | `git svn rebase $args` | |
| 110 | +| `gss` | `git status -s $args` | |
| 111 | +| `gst` | `git status $args` | |
| 112 | +| `gsta` | `git stash save $args` | |
| 113 | +| `gstaa`| `git stash apply $args` | |
| 114 | +| `gstc` | `git stash clear $args` | |
| 115 | +| `gstd` | `git stash drop $args` | |
| 116 | +| `gstl` | `git stash list $args` | |
| 117 | +| `gstp` | `git stash pop $args` | |
| 118 | +| `gsts` | `git stash show --text $args` | |
| 119 | +| `gsu` | `git submodule update $args` | |
| 120 | +| `gsw` | `git switch $args` | |
| 121 | +| `gts` | `git tag -s $args` | |
| 122 | +| `gunignore`| `git update-index --no-assume-unchanged $args` | |
| 123 | +| `gunwip`| Script to remove a WIP commit. | |
| 124 | +| `gup` | `git pull --rebase $args` | |
| 125 | +| `gupv` | `git pull --rebase -v $args` | |
| 126 | +| `gvt` | `git verify-tag $args` | |
| 127 | +| `gwch` | `git whatchanged -p --abbrev-commit --pretty=medium $args` | |
| 128 | +| `gwip` | Script to create a WIP commit. | |
0 commit comments