Skip to content

Instantly share code, notes, and snippets.

View sidcha's full-sized avatar
💡
Thinking...

Siddharth Chandrasekaran sidcha

💡
Thinking...
View GitHub Profile
@sidcha
sidcha / ..git-pr.md
Created April 7, 2020 12:13 — forked from gnarf/..git-pr.md
git pr - Global .gitconfig aliases for Pull Request Managment

Install

Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh

Usage

Easily checkout local copies of pull requests from remotes:

  • git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and checks it out
  • git pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out