<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>random utterings...: Tag git</title>
    <link>http://blog.randomutterings.com/articles/tag/git</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Undo Git Commit</title>
      <description>&lt;p&gt;I just made a commit to a public project and pushed the changes up to github.  Then I realized that I left some confidential information in one of the files.  Searching online lead to a couple of different ways to fix this (git rebase, and git filter-branch), neither of which were working well for me.&lt;/p&gt;

&lt;p&gt;I finally figured out that doing the following would work as long as the confidential information were only included in the last commit.&lt;/p&gt;

&lt;p&gt;First update the file and remove the confidential info.&lt;/p&gt;

&lt;p&gt;git add my-file-with-confidential-info&lt;/p&gt;

&lt;p&gt;git commit --amend
&lt;br&gt;
(this will add what's in your current staging area to the last commit)&lt;/p&gt;

&lt;p&gt;git push origin +master
&lt;br&gt;
(force push your changes to github)&lt;/p&gt;

&lt;p&gt;Hope this helps someone else.&lt;/p&gt;

</description>
      <pubDate>Sun, 18 Apr 2010 12:00:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:5cf4c350-8e45-4b61-8a55-845c6d181b02</guid>
      <author>Chris Barnes</author>
      <link>http://blog.randomutterings.com/articles/2010/04/18/undo-git-commit</link>
      <category>git</category>
      <category>github</category>
      <trackback:ping>http://blog.randomutterings.com/articles/trackback/34</trackback:ping>
    </item>
    <item>
      <title>Installing git on linux</title>
      <description>&lt;p&gt;Trying to install git from source on our linux server (we're running RHEL4 at work) and I was getting an error running make.&lt;/p&gt;

&lt;pre&gt;
undefined reference to `libiconv'
&lt;/pre&gt;

&lt;p&gt;Running make like this worked.&lt;/p&gt;

&lt;pre&gt;
make install CFLAGS="-liconv"
&lt;/pre&gt;

&lt;p&gt;But after the install was finished, running git barfed at me about loading a shared library libiconv.so.2.&lt;/p&gt;

&lt;p&gt;I had to edit /etc/ld.so.conf and add /usr/local/lib and run ldconfig.&lt;/p&gt;

&lt;p&gt;Credit Mark Turner for the ldconfig tip.  Thanks man.&lt;/p&gt;




</description>
      <pubDate>Thu, 24 Apr 2008 12:32:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:2b5d5fae-9a73-438b-b960-c035f75aa056</guid>
      <author>Chris Barnes</author>
      <link>http://blog.randomutterings.com/articles/2008/04/24/installing-git-on-linux</link>
      <category>Infrastructure</category>
      <category>git</category>
      <category>scm</category>
      <category>linux</category>
      <trackback:ping>http://blog.randomutterings.com/articles/trackback/29</trackback:ping>
    </item>
  </channel>
</rss>
