<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Git Howto on developwith — developer tips</title>
    <link>https://developwith.com/categories/git-howto/</link>
    <description>Recent content in Git Howto on developwith — developer tips</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 09 Apr 2019 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://developwith.com/categories/git-howto/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Git</title>
      <link>https://developwith.com/how-do-i/git/</link>
      <pubDate>Tue, 09 Apr 2019 00:00:00 +0000</pubDate>
      <guid>https://developwith.com/how-do-i/git/</guid>
      <description>&lt;p&gt;Practical answers for working with Git and GitHub.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;How do I export files from a GitHub repository?&lt;/strong&gt; — Download specific files and directories without cloning the whole repo. &lt;a href=&#34;export-files-from-github/&#34;&gt;→ Read more&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;How do I ignore files in Git?&lt;/strong&gt; — Configure .gitignore patterns for common frameworks and editors. &lt;a href=&#34;ignore-files-in-git/&#34;&gt;→ Read more&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;How do I remove files from Git history?&lt;/strong&gt; — Permanently purge sensitive files from your repository history. &lt;a href=&#34;remove-files-from-git-history/&#34;&gt;→ Read more&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>How to remove files from Git history</title>
      <link>https://developwith.com/how-do-i/git/remove-files-from-git-history/</link>
      <pubDate>Tue, 09 Apr 2019 00:00:00 +0000</pubDate>
      <guid>https://developwith.com/how-do-i/git/remove-files-from-git-history/</guid>
      <description>&lt;p&gt;Oh shoot, I just pushed up a pull request with some sensistive or secret values in it. I&amp;rsquo;ve been there, it happens when you get a bit tired and are trying to get a deadline out the door.&lt;/p&gt;&#xA;&lt;p&gt;No problem, &lt;code&gt;git filter-branch&lt;/code&gt; to the rescue. It allows you to rewrite your history and then you will have to force the push up to the origin to rewrite the history remotely as well. The way to do this is to filter the branch and then remove the file from all the specific hashes and the git log.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Export files from github</title>
      <link>https://developwith.com/how-do-i/git/export-files-from-github/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://developwith.com/how-do-i/git/export-files-from-github/</guid>
      <description>&lt;h1 id=&#34;export-files-from-github&#34;&gt;Export files from github&lt;/h1&gt;&#xA;&lt;p&gt;Git doesn&amp;rsquo;t have the concept of exporting, but it does have the archive feature. The archive feature pull the data out of the repository and makes either a tar or a zip. The archive can then be expanded to a directory.&lt;/p&gt;&#xA;&lt;p&gt;Example script for exporting the repo from a remote gitosis server:&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git archive --format&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;tar --prefix&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;rake --remote&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;ssh://gitosis.local/rake master &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; tar -xf -&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;&#xA;&lt;p&gt;But the trick is that github doesn&amp;rsquo;t support the git archive command, so instead they have an svn compatible approach.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ignore file in Git</title>
      <link>https://developwith.com/how-do-i/git/ignore-files-in-git/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://developwith.com/how-do-i/git/ignore-files-in-git/</guid>
      <description>&lt;h1 id=&#34;ignore-file-in-git&#34;&gt;Ignore file in Git&lt;/h1&gt;&#xA;&lt;p&gt;Sometimes as you are developing your project there are temporary files or data directories you want to exclude from git. Ignoring these files help to prevent the data from being checked into the repository by accident.&lt;/p&gt;&#xA;&lt;p&gt;To ignore files, you&amp;rsquo;ll need to add a file to your folder called &lt;code&gt;.gitignore&lt;/code&gt; which will specify a set of rules on what to exclude. This file needs to be added to git &lt;code&gt;git add .gitignore&lt;/code&gt; and committed to your repository.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
