Changes between Version 79 and Version 80 of WorkingWithGit
- Timestamp:
- Jun 22, 2017, 1:42:18 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WorkingWithGit
v79 v80 250 250 ==== 1. Check out the pull request locally 251 251 252 Check out - according to [https://help.github.com/articles/checking-out-pull-requests-locally/ GitHub's help] - the pull request {{{#ID}}} to work on as a local branch:{{{BRANCHNAME}}}:253 {{{ 254 git fetch upstream pull/ID/head: BRANCHNAME255 git checkout BRANCHNAME252 Check out - according to [https://help.github.com/articles/checking-out-pull-requests-locally/ GitHub's help] - the pull request `#ID` to work on as a local branch:`$BRANCHNAME`: 253 {{{ 254 git fetch upstream pull/ID/head:$BRANCHNAME 255 git checkout $BRANCHNAME 256 256 }}} 257 257 alternatively you may use 258 258 {{{ 259 curl -sLS https://github.com/macports/macports-ports/pull/ <ID>.patch \259 curl -sLS https://github.com/macports/macports-ports/pull/$ID.patch \ 260 260 | git am 261 261 }}} 262 262 or a wrapper script such as hub 263 263 {{{ 264 hub am https://github.com/macports/macports-ports/pull/ <ID>264 hub am https://github.com/macports/macports-ports/pull/$ID 265 265 }}} 266 266