<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" > <channel><title>Comments on: How I initialize my Git repositories</title> <atom:link href="http://kevin.deldycke.com/2010/05/initialize-git-repositories/feed/" rel="self" type="application/rss+xml" /><link>http://kevin.deldycke.com/2010/05/initialize-git-repositories/</link> <description>Free software engineer &#38; wannabe videomaker</description> <lastBuildDate>Sun, 29 Jan 2012 13:35:17 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: Pushing Git to Subversion: the case of WordPress plugin repository &#124; Kevin Deldycke</title><link>http://kevin.deldycke.com/2010/05/initialize-git-repositories/comment-page-1/#comment-9107</link> <dc:creator>Pushing Git to Subversion: the case of WordPress plugin repository &#124; Kevin Deldycke</dc:creator> <pubDate>Tue, 30 Aug 2011 09:12:22 +0000</pubDate> <guid isPermaLink="false">http://kevin.deldycke.com/?p=928#comment-9107</guid> <description>[...] with a copy of the original tree, and is the result of the rebase.But the latter has a problem: my initial commit and all my tags are squashed. I tried several methods to rebase my whole Git tree onto the local [...]</description> <content:encoded><![CDATA[<p>[...] with a copy of the original tree, and is the result of the rebase.But the latter has a problem: my initial commit and all my tags are squashed. I tried several methods to rebase my whole Git tree onto the local [...]</p> ]]></content:encoded> </item> <item><title>By: FTT Migration from Subversion to Git &#124; Kevin Deldycke</title><link>http://kevin.deldycke.com/2010/05/initialize-git-repositories/comment-page-1/#comment-9106</link> <dc:creator>FTT Migration from Subversion to Git &#124; Kevin Deldycke</dc:creator> <pubDate>Tue, 30 Aug 2011 09:11:29 +0000</pubDate> <guid isPermaLink="false">http://kevin.deldycke.com/?p=928#comment-9106</guid> <description>[...] svnserve --daemon --listen-port 3690 --root ./ftt-svn Then I created a local Git repository, using my initialization routine: $ rm -rf ./ftt-git $ mkdir ./ftt-git $ cd ./ftt-git $ git init $ git commit --allow-empty -m [...]</description> <content:encoded><![CDATA[<p>[...] svnserve &#8211;daemon &#8211;listen-port 3690 &#8211;root ./ftt-svn Then I created a local Git repository, using my initialization routine: $ rm -rf ./ftt-git $ mkdir ./ftt-git $ cd ./ftt-git $ git init $ git commit &#8211;allow-empty -m [...]</p> ]]></content:encoded> </item> <item><title>By: kev</title><link>http://kevin.deldycke.com/2010/05/initialize-git-repositories/comment-page-1/#comment-8601</link> <dc:creator>kev</dc:creator> <pubDate>Tue, 12 Apr 2011 12:28:25 +0000</pubDate> <guid isPermaLink="false">http://kevin.deldycke.com/?p=928#comment-8601</guid> <description>If you need to automate the setting of the initial commit&#039;s date, then add the &lt;code&gt;init&lt;/code&gt; tag just after the &lt;code&gt;git commit&lt;/code&gt; command.This will let you get the hash of the first commit dynamically: [code lang=&quot;shell&quot;] $ git commit --allow-empty -m &#039;Initial commit&#039; $ git tag &quot;init&quot; $ export GIT_TMP_INIT_HASH=`git show-ref init &#124; cut -d &#039; &#039; -f 1` $ git filter-branch --env-filter &#039; if [ $GIT_COMMIT = $GIT_TMP_INIT_HASH ] then export GIT_AUTHOR_DATE=&quot;Thu, 01 Jan 1970 00:00:00 +0000&quot; export GIT_COMMITTER_DATE=&quot;Thu, 01 Jan 1970 00:00:00 +0000&quot; fi&#039; -- --all $ unset GIT_TMP_INIT_HASH [/code]</description> <content:encoded><![CDATA[<p>If you need to automate the setting of the initial commit&#8217;s date, then add the <code>init</code> tag just after the <code>git commit</code> command.</p><p>This will let you get the hash of the first commit dynamically:</p><pre class="brush: bash; title: ; notranslate">
$ git commit --allow-empty -m 'Initial commit'
$ git tag &quot;init&quot;
$ export GIT_TMP_INIT_HASH=`git show-ref init | cut -d ' ' -f 1`
$ git filter-branch --env-filter '
    if [ $GIT_COMMIT = $GIT_TMP_INIT_HASH ]
      then
        export GIT_AUTHOR_DATE=&quot;Thu, 01 Jan 1970 00:00:00 +0000&quot;
        export GIT_COMMITTER_DATE=&quot;Thu, 01 Jan 1970 00:00:00 +0000&quot;
    fi' -- --all
$ unset GIT_TMP_INIT_HASH
</pre>]]></content:encoded> </item> <item><title>By: Moving a Git sub-tree to its own repository &#124; Kevin Deldycke</title><link>http://kevin.deldycke.com/2010/05/initialize-git-repositories/comment-page-1/#comment-8537</link> <dc:creator>Moving a Git sub-tree to its own repository &#124; Kevin Deldycke</dc:creator> <pubDate>Thu, 24 Mar 2011 15:50:19 +0000</pubDate> <guid isPermaLink="false">http://kevin.deldycke.com/?p=928#comment-8537</guid> <description>[...] at the bottom of the history, I still have my initial commit (a personal habit of mine when I initialize my Git repositories). But its date was updated by the first filter-branch call. Let&#8217;s set its date back to [...]</description> <content:encoded><![CDATA[<p>[...] at the bottom of the history, I still have my initial commit (a personal habit of mine when I initialize my Git repositories). But its date was updated by the first filter-branch call. Let&#8217;s set its date back to [...]</p> ]]></content:encoded> </item> <item><title>By: kev</title><link>http://kevin.deldycke.com/2010/05/initialize-git-repositories/comment-page-1/#comment-8184</link> <dc:creator>kev</dc:creator> <pubDate>Tue, 18 Jan 2011 16:29:31 +0000</pubDate> <guid isPermaLink="false">http://kevin.deldycke.com/?p=928#comment-8184</guid> <description>I&#039;m starting to get an idea of the initial commit problem. And &lt;a href=&quot;http://brandon.dimcheff.com/2009/01/04/commit-a-linear-git-history-to-subversion.html&quot; rel=&quot;nofollow&quot;&gt;according Brandon Dimcheff&lt;/a&gt;, it looks like a &lt;code&gt;--root&lt;/code&gt; option was &lt;a href=&quot;http://git.kernel.org/?p=git/git.git;a=commit;h=190f53232d1e92a57843df90e889bcfea39620d3&quot; rel=&quot;nofollow&quot;&gt;added to Git&lt;/a&gt; to address this issue.And here is an &lt;a href=&quot;http://stackoverflow.com/questions/645450/git-how-to-insert-a-commit-as-the-first-shifting-all-the-others/4716997#4716997&quot; rel=&quot;nofollow&quot;&gt;example I found on Stack Overflow&lt;/a&gt; on how to use it: [code lang=&quot;shell&quot;] git rebase --root --onto $emptyrootcommit [/code]</description> <content:encoded><![CDATA[<p>I&#8217;m starting to get an idea of the initial commit problem. And <a href="http://brandon.dimcheff.com/2009/01/04/commit-a-linear-git-history-to-subversion.html" rel="nofollow">according Brandon Dimcheff</a>, it looks like a <code>--root</code> option was <a href="http://git.kernel.org/?p=git/git.git;a=commit;h=190f53232d1e92a57843df90e889bcfea39620d3" rel="nofollow">added to Git</a> to address this issue.</p><p>And here is an <a href="http://stackoverflow.com/questions/645450/git-how-to-insert-a-commit-as-the-first-shifting-all-the-others/4716997#4716997" rel="nofollow">example I found on Stack Overflow</a> on how to use it:</p><pre class="brush: bash; title: ; notranslate">
git rebase --root --onto $emptyrootcommit
</pre>]]></content:encoded> </item> <item><title>By: Commit history reconstruction with Git &#124; Kev&#39;s blog</title><link>http://kevin.deldycke.com/2010/05/initialize-git-repositories/comment-page-1/#comment-7169</link> <dc:creator>Commit history reconstruction with Git &#124; Kev&#39;s blog</dc:creator> <pubDate>Wed, 09 Jun 2010 19:08:46 +0000</pubDate> <guid isPermaLink="false">http://kevin.deldycke.com/?p=928#comment-7169</guid> <description>[...] Let&#8217;s create a history-injection branch from the init tag. The later is the root of my repository, as explained in my previous post on how I initialize my Git repositories. [...]</description> <content:encoded><![CDATA[<p>[...] Let&#8217;s create a history-injection branch from the init tag. The later is the root of my repository, as explained in my previous post on how I initialize my Git repositories. [...]</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/12 queries in 0.042 seconds using apc
Object Caching 532/533 objects using apc

Served from: kevin.deldycke.com @ 2012-02-08 11:55:28 -->
