Home

Awesome

Git patch

Adds custom functions and aliases to git plugin.

Installation

git clone https://github.com/marvinroman/oh-my-zsh-git-patch-plugin.git ~/.oh-my-zsh/custom/plugins/git-patch

Aliases

AliasFull CommandUseDescription
gbgit branchgb [branch name]Create branch with [branch name]
gbagit branch -agbaShow all branches include remote branches
gbDgit branch -DgbD [branch name]Delete [branch name]
gcfgit config --listgcfPrints git config for repository
gcskgit config user.signingkeygcsk [key signature]Sets git signing key to gpg key
gcmlgit config user.emailgcml [email]Sets user email
gcnmgit config user.namegcnm "[name]"Sets name
gcgpgtgit config commit.gpgsign truegcgpgtSets git commits to automatically be signed
gcgpgfgit config commit.gpgsign falsegcgpgfSets git commits to not be automatically signed
gclgit clone --recurse-submodulesgcl [url]Clones repo and submodules
gcbgit checkout -bgcb [branch name]Create and checkout new branch
gcmgit checkout mastergcmCheckout master branch
gcdgit checkout developgcdCheckout develop branch
gcogit checkout`gco [branchfile]`
gdgit diff`gd [branchfile]`
gdcsgit diff --compact-summarygdcs [branch]Diff between repositories and show only summary of differences
ggpullgit pull origin "$(git_current_branch)"ggpullPull current branch from remote origin
ggpushgit push origin "$(git_current_branch)"ggpushPush current branch to remote origin
ggsupgit branch --set-upstream-to=origin/$(git_current_branch)ggsupSet upstream remote to origin/current branch
gpsupgit push --set-upstream origin $(git_current_branch)gpsupSet upstream remote to origin/current branch and push
glgit pullglGit pull
gmgit mergegm [branch]Merge branch into current branch
gpgit pushgpGit push
grgit remotegrInteract with remote config
gragit remote addgra [remote name] [url]Set remote [name] to [url]
grvgit remote -vgrvList remote repositories & urls
grsetgit remote set-urlgrset [remote name] [url]Update [remote name] to new [url]
gstgit statusgstGit status