Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 990 Bytes

readme.md

File metadata and controls

38 lines (30 loc) · 990 Bytes

Custom Git commands

Requirements

Usage

# 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

Git config

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

How to

  • Create new file in bin
  • chmod +x <file>

Helpful Links