<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>replace files with git checkout</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/710 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="710"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;p&gt;search terms:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;inject git in unversioned files&lt;/li&gt;
&lt;li&gt;add git checkout in unversioned files&lt;/li&gt;
&lt;li&gt;git clone non-empty directory&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="section" id="solution"&gt;
&lt;h1&gt;Solution&lt;/h1&gt;
&lt;pre class="literal-block"&gt;
git init
git remote add origin git&amp;#64;example.org/repo.git
git fetch
git reset origin/master

git status
git diff
git checkout sites/all/themes/mytheme/
&lt;/pre&gt;
&lt;p&gt;Solution:
&lt;a class="reference external" href="https://stackoverflow.com/questions/2411031/how-do-i-clone-into-a-non-empty-directory"&gt;https://stackoverflow.com/questions/2411031/how-do-i-clone-into-a-non-empty-directory&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/710/rev-raw/e9a34ba9aa0d05e42b349fe578b978b4bb250fc7/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/710#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
