- Install
github cli
: https://cli.github.com - Install Github Pull Requests and Issues extension
- Add
bin
toPATH
# Checkout PR using github cli
gh pr checkout 1234
# Add config value for 'github.vscode-pull-request-github' extension
# Rename branch to 'pr/<author>/<pr_number>
git vsc
# Both can also be combined
git vc 1234
# Remove branch and remote
git vsc-delete
Set push.default = upstream
to target the correct branch when using git push
.
https://git-scm.com/docs/git-config#Documentation/git-config.txt-pushdefault
git push.default upstream
- Create new file in
bin
chmod x <file>