<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" 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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:xhtml="http://www.w3.org/1999/xhtml"xmlns:media="http://search.yahoo.com/mrss/" ><channel><title>Exercises In Self-Indulgence &#187; Git</title> <atom:link href="http://blog.akinori.org/tag/git/feed/" rel="self" type="application/rss+xml" /><link>http://blog.akinori.org</link> <description>No joy, no life</description> <lastBuildDate>Mon, 26 Sep 2011 09:00:01 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.akinori.org/tag/git/feed/" /> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>git-shift: Changing commit timestamps in Git</title><link>http://blog.akinori.org/2010/03/01/git-shift/</link> <comments>http://blog.akinori.org/2010/03/01/git-shift/#comments</comments> <pubDate>Sun, 28 Feb 2010 18:52:39 +0000</pubDate> <dc:creator>Akinori</dc:creator> <category><![CDATA[Shell Script]]></category> <category><![CDATA[Git]]></category><guid isPermaLink="false">http://blog.akinori.org/?p=54</guid> <description><![CDATA[Git is known to be so flexible that one can even fix or delete old commits, but what would you do if you wanted to change the timestamp of a particular commit? This need can arise for various reasons, such as when a merged commit has picked the unwanted timestamp on squash, when a contributor&#8217;s [...]<h3>Related Posts</h3><ul><li><a href="http://blog.akinori.org/2009/11/08/git-info/" rel="bookmark">git-info: Displaying information about a Git repository a la `svn info&#8217;</a></li></ul> ]]></description> <content:encoded><![CDATA[<p>Git is known to be so flexible that one can even fix or delete old commits, but what would you do if you wanted to change the timestamp of a particular commit?  This need can arise for various reasons, such as when a merged commit has picked the unwanted timestamp on squash, when a contributor&#8217;s (or your notebook&#8217;s) machine clock was obviously far out of sync, and so on.<br /> <a href="http://github.com/knu/git-shift">git-shift</a> is the tool I wrote to change dates (timestamps) of specified commits in a git repository.  The choice of the name sounds a bit too bold, so maybe I will rename it later—but anyway.<br /> The usage is simple; specify the amount of time you want to shift timestamps by, and a list of commit IDs you want to change timestamps of. (Range notation is currently not supported)<br /> e.g. to move timestamps of commits identified by the IDs <code>f9e8d7c6</code> and <code>579acf</code> two hours backwards:</p><pre>$ git-shift -2h f9e8d7c6 579acf</pre><p>Use it wisely and enjoy your life, night and day workers! :D</p><h3>Related Posts</h3><ul><li><a href="http://blog.akinori.org/2009/11/08/git-info/" rel="bookmark">git-info: Displaying information about a Git repository a la `svn info&#8217;</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://blog.akinori.org/2010/03/01/git-shift/feed/</wfw:commentRss> <slash:comments>3</slash:comments> <xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.akinori.org/2010/03/01/git-shift/" /></item> <item><title>git-info: Displaying information about a Git repository a la `svn info&#8217;</title><link>http://blog.akinori.org/2009/11/08/git-info/</link> <comments>http://blog.akinori.org/2009/11/08/git-info/#comments</comments> <pubDate>Sat, 07 Nov 2009 18:11:13 +0000</pubDate> <dc:creator>Akinori</dc:creator> <category><![CDATA[Shell Script]]></category> <category><![CDATA[Git]]></category><guid isPermaLink="false">http://blog.akinori.org/?p=5</guid> <description><![CDATA[I haven&#8217;t been writing much in English about technical stuff, so I am going to start this blog with a series of articles that introduce some of my little works. I picked git-info(1) to begin with, which is a small shell script that provides Git with a similar functionality to &#34;svn info&#34;.  As a long [...]<h3>Related Posts</h3><ul><li><a href="http://blog.akinori.org/2010/03/01/git-shift/" rel="bookmark">git-shift: Changing commit timestamps in Git</a></li></ul> ]]></description> <content:encoded><![CDATA[<p>I haven&#8217;t been writing much in English about technical stuff, so I am going to start this blog with a series of articles that introduce some of my little works.</p><p>I picked <code>git-info(1)</code> to begin with, which is a small shell script that provides Git with a similar functionality to &quot;<code>svn info</code>&quot;.  As a long time user of Subversion who was new to Git I really missed a handy command to see repository information at a glance, so I wrote this.</p><p><a title="knu's git-info at master - GitHub" href="http://github.com/knu/git-info">knu&#8217;s git-info at master &#8211; GitHub</a></p><p>A sample output (at the time of writing) is as follows.</p><pre>% git info
Repository Path: /home/knu/src/github/git-info/.git
Path: /home/knu/src/github/git-info
Remote Repositories:
    origin  git@github.com:knu/git-info.git (fetch)
    origin  git@github.com:knu/git-info.git (push)
Remote Branches:
      origin/HEAD -&gt; origin/master
      origin/master
Local Branches:
    * master
Repository Configuration:
    [core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
    [remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = git@github.com:knu/git-info.git
    [branch "master"]
        remote = origin
        merge = refs/heads/master
Last Changed Commit ID: da32fa59f7fab84606ce3c144e636043e96d8063
Last Changed Author: Akinori MUSHA
Last Changed Date: Tue Jul 28 10:37:09 2009 +0900
Last Changed Log:
    Take the directory as a physical path.</pre><p>Hope this helps you on your way.</p><h3>Related Posts</h3><ul><li><a href="http://blog.akinori.org/2010/03/01/git-shift/" rel="bookmark">git-shift: Changing commit timestamps in Git</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://blog.akinori.org/2009/11/08/git-info/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.akinori.org/2009/11/08/git-info/" /></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 1/27 queries in 0.137 seconds using disk: basic
Object Caching 659/669 objects using disk: basic

Served from: blog.akinori.org @ 2012-02-08 13:03:27 -->
