Skip to content

Latest commit

 

History

History

git

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

git plugin

The git plugin provides some aliases and functions for git.

To use it, add git to plugins array in your ~/.bashrc or ~/.zshrc file:

export SF_PLUGINS=(... git)

Requirements

Aliases

Alias Command
ga git add
gaa git add --all
gax git add --chmod=+x
gb git branch
gba git branch --all
gbd git branch --delete
gbr git branch --remotes
gbsc git branch --show-current
gc git commit
gcm git commit -m
gca git commit --ammend
gcam git commit --amend -m
gcf git config
gcfl git config --list
gcfg git config --global
gcfge git config --global --edit
gcfgl git config --global --list
gco git checkout
gcob git checkout -b
gcoM git checkout master
gd git diff
gdst git diff --stat
gdom git diff origin/master
gf git fetch
gH git help
gi git init
gl git log
glfp git log --follow -p
gln git log -n
glo git log --oneline
glon git log --oneline -n
gmv git mv
go git open
gp git push
gpao git push --all origin
gpo git push origin
gpsuo git push --set-upstream origin
gpt git push --tags
gpl git pull
grm git rm -r
grs git restore
grss git restore --staged
grt git reset
grts git reset --soft
gsh git show
gshH git show HEAD
gst git status
gsts git status --short
gsw git switch
gswc git switch -c
gt git tag
gta git tag --annotate
gtd git tag --delete
gtl git tag --list

Functions

  • git_aliases: Show all aliases of git plugin.