Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.19 KB

README.md

File metadata and controls

38 lines (27 loc) · 1.19 KB

Gitalias

Summary

Essential goal of Gitalias is to turns git command into shortest possible sequence of characters (an alias) where the alias does not have to be remembered but it can be mnemotechnically derived from the full command.

Documentation

https://josefpihrt.github.io/docs/gitalias

Usage

Usage Example

Implement feature on a new branch

git th                 # reset --hard
git sm                 # switch main
git l                  # pull
git sc feature/foo     # switch --create feature/foo
                       # Implement feature ...
git aa                 # add --all
git cm "Implement foo" # commit --message "Implement foo"

Create and Merge PR

Use GitHub CLI or web UI ...

Clean feature branch

git sm              # switch main
git l               # pull
git opo             # remote prune origin
git bdf feature/foo # branch --delete --force feature/foo