PR
PR workflow. Creates a PR, or switches back to main and pulls and prunes.
pr
pushes the branch to origin and creates a PR.
pr -d/--done
checks out main
, runs git pull --prune
, git branch --delete <branch the command was run on>
.
Workflow
- Create a personal branch
- Make some changes
- Commit them
- Run
pr
to push the branch and create the PR - Get the PR reviewed and merged
- Delete the remote branch
- Run
pr -d/--done
to go back to main and pull the latest changes