This repository contains my personal bin utility scripts from ~/bin
# Change to your home directory
cd ~/
# Clone the repsitory to your home directory
git clone https://github.com/ocrosby/bin.git
# Add all of the helper directories to your path (preferably do this in .zshrc or .bashrc etc...)
export PATH=~/bin/git:~/bin/conventional:~/bin/docker:$PATH
git add .
git commit -m "fix(myscope): my message"
git push
becomes
fix "my message" myscope
git add .
git commit -m "fix: my message"
git push
becomes
fix "my message"
- requires no arguments
- executes
git status
- requires a single double quoted argument
- executes
git add .
- executes
git commit -m "<arg>"
- executes
git push
- requires a single double quoted argument
- calls in prefixing the commit message with
feat:
.
- requires a single double quoted argument
- calls in prefixing the commit message with
fix:
.
- requires a single double quoted argument
- calls in prefixing the commit message with
chore:
.
- requires a single double quoted argument
- calls in prefixing the commit message with
docs:
.
- requires a single double quoted argument
- calls in prefixing the commit message with
style:
.
- requires a single double quoted argument
- calls in prefixing the commit message with
test:
.
- requires a single double quoted argument
- calls in prefixing the commit message with
ci:
.
- requires a single argument that is the name of a branch you wish to create
- creates the new branch
- checks out the new branch
- pushes the upstream origin
- calls
git branch
to show you where you are - this should leave you on the new branch
- requires a single double quoted argument that is the name of the branch you wish to delete
- checks out main
- calls
git pull
- forcefully deletes the specified branch
- calls
git ranch
to show you where you are
Note: I need to modify delete to detect the current branch you are on so it doesn't have to be specified.
- requires no arguments
- purges images to save space locally
Note: run this regularly or your drive will fill up