-
Notifications
You must be signed in to change notification settings - Fork 0
Create alias for making pull requests
Jason Cheong-Kee-You edited this page Mar 25, 2025
·
6 revisions
-
Install hub:
brew install gh
-
Create a github personal access token:
-
Go here:
-
Generate a new token with 'repo' and 'workflow' rights.
-
-
Set the GITHUB_TOKEN environment variable in your shell config (e.g. ~/.zshrc):
export GITHUB_TOKEN=<your-github-access-token>
-
Run this on the command line:
git remote set-head origin main
-
Add this lines to your shell config (e.g. ~/.zshrc):
alias mkpr='vwpr' alias vwpr='gh pr view --web > /dev/null 2>&1 || gh pr create -f --body ""'