Changes between Version 75 and Version 76 of HowToGit


Ignore:
Timestamp:
10/23/19 07:52:43 (5 years ago)
Author:
neteler
Comment:

Applying a diff file locally

Legend:

Unmodified
Added
Removed
Modified
  • HowToGit

    v75 v76  
    140140!GitHub provides command line instructions under each pull request ([https://github.com/OSGeo/grass/pulls "Pulls" tab]). Please check there.
    141141
     142=== Applying a diff file locally ===
     143
     144Patching local repo with `git`:
     145
     146{{{
     147# first the stats about the patch (see what would be changed)
     148git apply --stat  grass_code_changes.diff
     149
     150# dry run to detect errors (should be none):
     151git apply --check grass_code_changes.diff
     152
     153# apply patch locally, continue committing as usual
     154git am < grass_code_changes.diff
     155
     156# FYI - undo a local patch:
     157git am --abort  < grass_code_changes.diff
     158}}}
    142159== Fixing bugs in a release branch ==
    143160