Skip to content

Instantly share code, notes, and snippets.

View Schachte's full-sized avatar
🖊️
Writing goto statements

Ryan Schachte Schachte

🖊️
Writing goto statements
View GitHub Profile
@Schachte
Schachte / ..git-pr.md
Created January 26, 2018 23:39 — 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