A collection of bash function which compile multiple git functions.
Locally clone this repo. Then, in your .bashrc, .zshrc, or whatever "run at start" script that belongs to the bash-based shell you use, source this repo's script.sh. Then, reload your terminal shell.
Upon reloading your terminal session, you can now use all gitp- functions.
gitp-init- Create a.gitplusdirectory in the terminal's current directory.gitp-add-verifyorgitp-av- Performsgit add,git diff --cached, andgit status. All arguments are passed togit add.gitp-preserve-branch [...branches]- Prevents the specified branches from being deleted/pruned bygitp-prunebr.gitp-allow-prune [...branches]- Allows the specified branches to be deleted/pruned bygitp-prunebr.gitp-prunebr- Fetches remotes and prunes tracking branches which track non-existant branches (git fetch --all --prune), then deletes all low branches that have already been merged into the current branch EXCEPT branch names that have been marked for preservation bygitp-preserve-branch.- It's recommended to add your default branch to your preserve list using
gitp-preserve-branchand switch to it before doing this. Although, as long as your default branch has been marked to preserve and your current branch is up to date with the default branch, it should not matter what branch you are on when you rungitp-prunebr. Perhaps later I will add functions to set the default branch andgitp-prunebrwill switch to the default branch automatically.
- It's recommended to add your default branch to your preserve list using