From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: make update error Date: Tue, 01 Sep 2009 01:53:38 -0400 Message-ID: <11144.1251784418@gamaville.dokosmarshall.org> References: <34C923AA-FD76-43C3-8B5D-8433E27036A5@tsdye.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiML1-0000K4-SA for emacs-orgmode@gnu.org; Tue, 01 Sep 2009 01:55:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiMKw-0000Go-Ow for Emacs-orgmode@gnu.org; Tue, 01 Sep 2009 01:55:27 -0400 Received: from [199.232.76.173] (port=54710 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiMKw-0000Gl-Ij for Emacs-orgmode@gnu.org; Tue, 01 Sep 2009 01:55:22 -0400 Received: from vms173019pub.verizon.net ([206.46.173.19]:43270) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MiMKv-0000zo-Oc for Emacs-orgmode@gnu.org; Tue, 01 Sep 2009 01:55:21 -0400 Received: from gamaville.dokosmarshall.org ([98.110.172.159]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KPA00KYX31FMUZ3@vms173019.mailsrvcs.net> for Emacs-orgmode@gnu.org; Tue, 01 Sep 2009 00:53:39 -0500 (CDT) In-reply-to: Message from "Thomas S. Dye" of "Mon, 31 Aug 2009 19:04:44 -1000." <34C923AA-FD76-43C3-8B5D-8433E27036A5@tsdye.com> 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: "Thomas S. Dye" Cc: Emacs-orgmode@gnu.org Thomas S. Dye wrote: > Aloha all, > > Apologies in advance for a question well below the prevailing software > expertise on this list and somewhat off topic. I looked around for an > answer to this with no luck. > > I'm trying to update the org-mode installation on my Mac, like this: > > sudo make update > > git pull counts, compresses, receives objects, resolves deltas, > updates and fails with this message: > > error: Entry 'Makefile' not uptodate. Cannot merge. > > As far as I know Makefile is up-to-date. > You probably changed it without realizing it. If you don't care about the changes (you can check with "git diff": it will tell you what's different between your repository and the working tree), you can checkout the original version of the Makefile and then do the pull: git checkout Makefile git pull This will probably do it, but if worse comes to worse, you can always just throw away the whole repository and start from scratch: git clone git://repo.or.cz/org-mode.git . You might also want to have a local branch, where you can keep any local modifications, e.g. if the changes to the Makefile were deliberate and you wanted to keep them, then you could save the Makefile temporarily (mv Makefile /tmp/Makefile), do the above commands, then create the local branch: git branch local change to it: git checkout local (note that checkout has a couple of related but different meanings). Move the modified Makefile back and commit the changes: mv /tmp/Makefile . git commit -a When it it time to pull again, you can change back to the (pristine) master branch and pull: git checkout master git pull Then you can rebase your local changes on top of the new bits: git rebase master local It's a good way to keep a few local modifications and carry them forward to any new version of org (of course, if the new version and your changes change the same area of a file, you might end up with merge conflicts that you'll have to resolve: but most of the time, it just works). HTH, Nick