From mboxrd@z Thu Jan 1 00:00:00 1970 From: layer Subject: Re: how to update origin/ after a push to origin ? Date: Wed, 13 May 2009 22:13:32 -0700 Message-ID: <20189.1242278012@relay.known.net> References: <19640.1242276135@relay.known.net> <32541b130905132158s44cc5b19n974901c05cf025b2@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: git@vger.kernel.org To: Avery Pennarun X-From: git-owner@vger.kernel.org Thu May 14 07:13:41 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1M4TGF-0004iv-Te for gcvg-git-2@gmane.org; Thu, 14 May 2009 07:13:40 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753424AbZENFNb convert rfc822-to-quoted-printable (ORCPT ); Thu, 14 May 2009 01:13:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753352AbZENFNb (ORCPT ); Thu, 14 May 2009 01:13:31 -0400 Received: from relay.known.net ([67.121.255.169]:36134 "EHLO relay.known.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751058AbZENFNb convert rfc822-to-8bit (ORCPT ); Thu, 14 May 2009 01:13:31 -0400 Received: from localhost (127.0.0.1) by relay.known.net (Allegro Maild v1.2.19) id 000000039337; Wed, 13 May 2009 22:13:32 -0700 In-reply-to: <32541b130905132158s44cc5b19n974901c05cf025b2@mail.gmail.com> Comments: In-reply-to Avery Pennarun message dated "Thu, 14 May 2009 00:58:09 -0400." X-Mailer: MH-E 8.1; nmh 1.3; GNU Emacs 22.3.1 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Avery Pennarun wrote: >> On Thu, May 14, 2009 at 12:42 AM, layer wrote: >> > after the push, I still see the names of the files I pushed becaus= e I >> > haven't updated origin/master yet, with a fetch. =A0Of course, a "= git >> > pull" would do it, but I don't want to do that, because I might be >> > using something other than `origin' and I don't want anything but = the >> > single branch. >> > >> > So, I naively thought that >> > >> > =A0git fetch origin master >> > >> > would do the trick, but after that command the git diff above stil= l >> > shows the same files. >>=20 >> Short answer: >>=20 >> git fetch origin >>=20 >> However, 'git push origin master' should update origin/master >> automatically, at least in relatively recent git versions. It's >> rather weird if that didn't happen. I decided to attempt cleanup myself: $ mv .git/refs/heads/origin/ git.refs.heads.origin $ git diff origin/master..master diff --git a/ChangeLog b/ChangeLog index f7b4551..f2200a0 100644 --- a/ChangeLog +++ b/ChangeLog ... OK, back to normal. $ git fetch origin From git:/repo/git/acl 4be7cc8..28f0f4f master -> origin/master $ git diff origin/master..master $=20 I _swear_ I tried that. Sorry to trouble everyone, and thanks Avery. Appreciated. Kevin