login
Header Space

 
 

Re: Stupid question on getting branch from yesterday

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bill Lear <rael@...>
Cc: <git@...>
Date: Wednesday, February 14, 2007 - 3:49 pm

Bill Lear <rael@zopyra.com> wrote:

No.  This would update your branch and your index to <SHA>, but
leave your working directory alone.  That's not what you want here.

Use `git checkout <SHA>` which will detach your HEAD and seek to
the commit, leaving your current commit alone.  Later you can get
back by `git checkout oldbranch`.
 
-- 
Shawn.
-
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:
Stupid question on getting branch from yesterday, Bill Lear, (Wed Feb 14, 3:38 pm)
Re: Stupid question on getting branch from yesterday, Linus Torvalds, (Wed Feb 14, 5:13 pm)
Re: Stupid question on getting branch from yesterday, Junio C Hamano, (Wed Feb 14, 5:25 pm)
Re: Stupid question on getting branch from yesterday, Junio C Hamano, (Wed Feb 14, 3:50 pm)
Re: Stupid question on getting branch from yesterday, Shawn O. Pearce, (Wed Feb 14, 3:49 pm)
Re: Stupid question on getting branch from yesterday, Junio C Hamano, (Wed Feb 14, 3:54 pm)
speck-geostationary