Command | Alias |
---|---|
g | git |
ga | git add |
gaa | git add . |
gb | git branch |
gbd | git branch -d |
gbD | git branch -D |
gbdr | git branch -d -r |
gbDr | git branch -D -r |
gbv | git branch -v |
gbvr | git branch -v -r |
gcn | git config |
gcnu | git config user.name |
gcne | git config user.email |
gcngu | git config --global user.name |
gcnge | git config --global user.email |
gsw | git switch |
gswc | git switch -c |
gswf | git switch -f |
gcl | git clone |
gc | git commit |
gcm | git commit -m |
gca | git commit --amend |
gcam | git commit --amend -m |
gd | git diff |
gdn | git diff --name-only |
gds | git diff --staged |
gdsn | git diff --staged --name-only |
gdp | git diff @~1 @ |
gf | git fetch |
gfa | git fetch --all |
gl | git log |
glo | git log --oneline |
gm | git merge |
gp | git push |
gpl | git pull |
gpu | git push -u origin |
grh | git reset --hard |
grs | git restore --staged |
grm | git rm |
grmr | git rm -r |
grmc | git rm --cached |
grmcr | git rm --cached -r |
gst | git stash |
gstp | git stash pop |
gs | git status |
gnu | git switch -c $1 ; git push -u origin $1 |
./install.sh zsh
./install.sh bash
./install.sh fetch
./install.sh update
./install.sh show
./install.sh diff
./install.sh help
or
./install.sh --help
To use installed .git-shortcuts just restart your terminal or run command:
source ~/.zshrc
source ~/.bashrc