Git

git

by Angelo Rafael

A package of commands of git.

shellgitalias
espanso install git --version 0.1.0

Espanso GIT

Improve your git experience using this snippets triggers, become a faster developer at cli.

Triggers

Configurations

TriggerCommand
giti.git init
gitcl.git clone
gitconfigline1.git config --global core.autocrlf true
gitconfigline2.git config --global core.safecrlf warn
gitemailg.git config --global user.email ""
gitemaill.git config --local user.email ""
gituserg.git config --global user.name ""
gituserl.git config --local user.name ""
<br>

Push | Pull

TriggerCommand
gits.git status
gita.git add .
gitc.git commit -m ""
gitamc.git commit --amend -m ""
gitama.git commit --amend --author="User Name <[email protected]>"
gitp.git push origin
gitpf.git push origin --force
gitu.git pull origin
gitru.git remote update
gitfa.git fetch --all
<br>

Stash

TriggerCommand
gitst.git stash
gitstl.git stash list
gitsts.git stash show
gitstp.git stash pop
gitstd.git stash drop
<br>

Branch

TriggerCommand
gitm.git merge
gitmb.git merge
gitchk.git checkout
gitchkb.git checkout -b
gitnb.git checkout -b
gitb.git branch
gitba.git branch -a
gitbd.git branch -d
gitbdr.git push origin --delete
<br>

Log

TriggerCommand
gitl.git log
gitlp.git log --pretty=oneline
gitlo.git log --oneline
gitlgo.git log --graph --oneline
gitlpf.`git log --pretty=format:"%h %ad
<br>

Revert | Rebase | Reset

TriggerCommand
gitrb.git rebase master
gitrs.git reset
gitrsh.git reset --hard
gitrv.git revert HEAD
gitrvne.git revert HEAD --no-edit
<br>

Tags

TriggerCommand
gittg.git tag
gittgd.git tag -d
gitmv.git mv file.ext dir_name