Answers.Body: <p>Applying a patch to a standard install doesn't require you to switch it over to Git. You can just apply the patch from a given PR (let's say it is PR #12345) like so from the command line:</p>
  
  <pre><code>cd path/to/civicrm
  wget https://github.com/civicrm/civicrm-core/pull/12345.diff
  patch -p1 &lt; 12345.diff
  rm 12345.diff
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-11T14:50:26.210Z
Answers.Text: 1 2 3 4 5? That's the kind of combination an idiot would put on his luggage!
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-11T14:38:56.947Z
Answers.LastActivityDate: 2015-08-26T15:52:48.423Z
Answers.LastEditDate: 2015-08-26T15:52:48.423Z
Answers.UserDisplayName: Coleman
Body: <p>A link was graciously provided to a PR on GitHub to fix an issue that I am watching in the Jira issue queue.  The fix is only one line of code that changes a display, so I am confident applying the fix without upgrading my installation will not have unintended consequences in this particular case.</p>
  
  <p>Obviously, I can change the one line of code by hand, but in the interest of trying to use best practices, I'd like to understand the best way of using Git itself to apply the change. I have Git installed on my server and use a private GitHub repository for our organization's code base.</p>
  
  <p>The "GitHub for CiviCRM" documentation (<a href="http://wiki.civicrm.org/confluence/display/CRMDOC/GitHub+for+CiviCRM">http://wiki.civicrm.org/confluence/display/CRMDOC/GitHub+for+CiviCRM</a>) is geared towards those contributing to the codebase rather than those who need to apply a supplied fix.</p>
  
Tags: <sysadmin>
Title: How do I apply a patch supplied in the issue queue via Git?
ThreadText: # How do I apply a patch supplied in the issue queue via Git?
  
  (Asked by: username_0 on 2015-08-11)
  
  A link was graciously provided to a PR on GitHub to fix an issue that I am watching in the Jira issue queue. The fix is only one line of code that changes a display, so I am confident applying the fix without upgrading my installation will not have unintended consequences in this particular case.
  
  Obviously, I can change the one line of code by hand, but in the interest of trying to use best practices, I'd like to understand the best way of using Git itself to apply the change. I have Git installed on my server and use a private GitHub repository for our organization's code base.
  
  The "GitHub for CiviCRM" documentation (<http://wiki.civicrm.org/confluence/display/CRMDOC/GitHub+for+CiviCRM>) is geared towards those contributing to the codebase rather than those who need to apply a supplied fix.
  
  **Tags:** sysadmin
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-08-11. Score: 12 | Accepted answer
  
  Applying a patch to a standard install doesn't require you to switch it over to Git. You can just apply the patch from a given PR (let's say it is PR #12345) like so from the command line:
  cd path/to/civicrm
  wget https://github.com/civicrm/civicrm-core/pull/12345.diff
  patch -p1 < 12345.diff
  rm 12345.diff
  
  > **Comments:**
  > **username_1**: 1 2 3 4 5? That's the kind of combination an idiot would put on his luggage!  
  
  ---
  
  