{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"replace files with git checkout","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/710 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"710\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<p>search terms:<\/p>\n<ul class=\"simple\">\n<li>inject git in unversioned files<\/li>\n<li>add git checkout in unversioned files<\/li>\n<li>git clone non-empty directory<\/li>\n<\/ul>\n<div class=\"section\" id=\"solution\">\n<h1>Solution<\/h1>\n<pre class=\"literal-block\">\ngit init\ngit remote add origin git&#64;example.org\/repo.git\ngit fetch\ngit reset origin\/master\n\ngit status\ngit diff\ngit checkout sites\/all\/themes\/mytheme\/\n<\/pre>\n<p>Solution:\n<a class=\"reference external\" href=\"https:\/\/stackoverflow.com\/questions\/2411031\/how-do-i-clone-into-a-non-empty-directory\">https:\/\/stackoverflow.com\/questions\/2411031\/how-do-i-clone-into-a-non-empty-directory<\/a><\/p>\n<\/div>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/710\/rev-raw\/e9a34ba9aa0d05e42b349fe578b978b4bb250fc7\/README.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/710#README.rst\">README.rst<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
