Changes between Version 93 and Version 94 of HowToGit


Ignore:
Timestamp:
06/03/20 01:23:43 (4 years ago)
Author:
nila
Comment:

Section added with instructions for making a checkout of a pull request locally for testing

Legend:

Unmodified
Added
Removed
Modified
  • HowToGit

    v93 v94  
    208208git apply --reverse grass_code_changes.diff
    209209}}}
     210
     211=== Checking out pull requests locally ===
     212
     213A convenient way to checkout a pull request for testing purposes is using the following command pattern:
     214
     215{{{#!sh
     216# assuming that "upstream" points to OSGeo/grass
     217
     218git fetch upstream pull/<id>/head:<branch>
     219}}}
     220
     221The `<id>` is the ID number and `<branch>` is the branch name of the pull request.
     222
     223For example, using this information on a PR as displayed on !GitHub:
     224{{{
     225Fix this error #123
     226Someone wants to merge 3 commits into OSGeo:master from Someone:fix-this-error
     227}}}
     228the command would look like:
     229{{{#!sh
     230git fetch upstream pull/123/head:fix-this-error
     231
     232# then proceed to checkout for testing
     233git checkout fix-this-error
     234
     235# after testing, you may delete locally
     236git checkout master
     237git branch -D fix-this-error
     238}}}
     239
    210240== Fixing bugs in a release branch ==
    211241