<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>patch on Huy Le</title>
    <link>https://huynle.com/tags/patch.html</link>
    <description>Recent content in patch on Huy Le</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>
    <lastBuildDate>Thu, 02 Feb 2023 04:49:44 -0700</lastBuildDate><atom:link href="https://huynle.com/tags/patch/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Patching Release branches with Git</title>
      <link>https://huynle.com/r-hsuofj96.html</link>
      <pubDate>Thu, 02 Feb 2023 04:49:44 -0700</pubDate>
      
      <guid>https://huynle.com/r-hsuofj96.html</guid>
      <description>Given two branches master and personal. You made some changes in your personal branch, and because the changes are very personal, you cannot create an Merge Request and push it to the public master branch. So you need to create a patch file that you can apply to master whenever it gets updated.
Create a brand new branch
git diff master personal &amp;gt; ../master-personal-patchfile git checkout patched master # checkout new branch from master git apply .</description>
    </item>
    
  </channel>
</rss>
