Skip to content

Custom git command scripts

License

Notifications You must be signed in to change notification settings

cdce8p/git-custom-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Custom git command scripts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages