From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: update of snapshot release broken? Date: Sun, 24 Oct 2010 09:58:49 -0400 Message-ID: <8739rvsndy.fsf@gollum.intra.norang.ca> References: <81bp6j6e4y.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=34251 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PA16C-0002lv-Mr for emacs-orgmode@gnu.org; Sun, 24 Oct 2010 09:59:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PA16B-0005Cl-IY for emacs-orgmode@gnu.org; Sun, 24 Oct 2010 09:59:00 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:57500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PA16B-0005Ae-Ge for emacs-orgmode@gnu.org; Sun, 24 Oct 2010 09:58:59 -0400 In-Reply-To: (Michael Brand's message of "Sun, 24 Oct 2010 14:21:18 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Brand Cc: Org Mode , Jambunathan K Michael Brand writes: > On Sun, Oct 24, 2010 at 13:09, Jambunathan K wrote: >> git archive --format=tar --prefix=project/ HEAD | gzip >latest.tar.gz > > Thanks, that helps me already to install the currently very latest > version to a different machine at some time later. But even better for > me would be to git-pull the very latest version on one machine, get > its SHA1 and then do a git-whatever with the same SHA1 at some time > later on another machine to get the same version again. git pull on one machine git describe to get short SHA1 git checkout SHA1 on other machine should give you exactly the same codebase on each. Example: $ git checkout origin/master # on machine 1 $ git describe release_7.01h-823-gd600831 # Note SHA1 starting here ^^^^^^^ # SHA1 is d600831 # On other machine $ git pull # to get up to date code $ git checkout d600831 And you have the same commit on both machines. With this method you can also backup and move to any arbitrary commit in the history -- if you find you have a bug in the current code that was introduced 5 commits ago, you can back up to a previous commit (the one before the one introducing the bug) and keep working. HTH, Bernt