Checkout GitHub Pull Requests via CLI | Chris Aniszczyk's (zx) diatribe
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
You are now able to easily fetch and checkout pull requests to play with. For example:
$ git checkout pr/123 Branch pr/123 set up to track remote branch pr/123 from origin. Switched to a new branch 'pr/123'
That's my git tip (or hack) for today, hope you enjoy it!
Read full article from Checkout GitHub Pull Requests via CLI | Chris Aniszczyk's (zx) diatribe
No comments:
Post a Comment