Re: new to git

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Kyle Rose <krose@...>
Cc: git mailing list <git@...>
Date: Monday, August 27, 2007 - 4:11 pm

On Mon, Aug 27, 2007 at 03:43:47PM -0400, Kyle Rose wrote:

I think I tried to cover most of this in the user-manual
(http://www.kernel.org/pub/software/scm/git/docs/user-manual.html has
the latest version, or it's in Documentation/) but some of it may be
harder to find than it should be.


Git caches the value of the remote's "master" in
refs/remotes/origin/master.  That's the thing that's getting updated;
you can actually

	cat .git/refs/remotes/origin/master

before and after you'll see that it got updated from 7cf088c to d344498.

I think newer versions of git actually update that "remote-tracking
branch head" on the push as well, which would prevent you from getting
the message since by the time of the pull that thing will already have
been updated.


	git checkout some_revision path/to/filename


I don't know p4, but maybe you're looking for

	git show some_revision:foo


The latter should forcibly reset the branch head "foo" to point at the
same commit as "master".  The former tries to do a merge between the
two.

In the case where master is a descendant of foo (so there's no commits
in foo that isn't already in master), the two should do the same thing.


Maybe you want "man git-remote"?  Or see "git-config" for more general
configuration.

But editing .git/config file directly is often simplest, and won't cause
any problem.

--b.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
new to git, Kyle Rose, (Mon Aug 27, 3:43 pm)
Re: new to git, Junio C Hamano, (Wed Sep 5, 2:54 am)
Re: new to git, Jan Hudec, (Wed Sep 5, 1:56 am)
Re: new to git, Andreas Ericsson, (Mon Aug 27, 4:22 pm)
Re: new to git, Junio C Hamano, (Mon Aug 27, 4:39 pm)
Re: new to git, Andreas Ericsson, (Mon Aug 27, 5:14 pm)
Re: new to git, Kyle Rose, (Mon Aug 27, 4:36 pm)
Re: new to git, J. Bruce Fields, (Mon Aug 27, 4:11 pm)