Changes between Version 79 and Version 80 of WorkingWithGit


Ignore:
Timestamp:
Jun 22, 2017, 1:42:18 PM (7 years ago)
Author:
raimue (Rainer Müller)
Comment:

Unify variable syntax across PR instructions

Legend:

Unmodified
Added
Removed
Modified
  • WorkingWithGit

    v79 v80  
    250250==== 1. Check out the pull request locally
    251251
    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:BRANCHNAME
    255 git checkout BRANCHNAME
     252Check 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{{{
     254git fetch upstream pull/ID/head:$BRANCHNAME
     255git checkout $BRANCHNAME
    256256}}}
    257257alternatively you may use
    258258{{{
    259 curl -sLS https://github.com/macports/macports-ports/pull/<ID>.patch \
     259curl -sLS https://github.com/macports/macports-ports/pull/$ID.patch \
    260260 | git am
    261261}}}
    262262or a wrapper script such as hub
    263263{{{
    264 hub am https://github.com/macports/macports-ports/pull/<ID>
     264hub am https://github.com/macports/macports-ports/pull/$ID
    265265}}}
    266266