Prerequisites:
git-squash (optional - only for gsquash
command)
Installation:
Copy and run the command below:
curl https://raw.githubusercontent.com/fehbari/git-shortcuts/release/src/git-shortcuts.zsh -o ~/.git-shortcuts.zsh ;echo '\nsource ~/.git-shortcuts.zsh' >> ~/.zshrc ;source ~/.zshrc
Type g --help
to learn what you can do.
Updating:
Run g --version
to check your installed version.
Not up-to-date? g --update
to install the latest.
Uninstall:
Remove the entry from your ~/.zshrc file and delete ~/.git-shortcuts.zsh from home folder.