Re: What does git reset do?
- From
- Ron Garret <ron1@flownet.com>
- Date
- Feb 2, 2010, 08:24 UTC
- Message-ID
- <ron1-2B8474.00242602022010@news.gmane.org>
- In-Reply-To
- <op.u7hpv8nd4oyyg1@localhost.localdomain>
In article <op.u7hpv8nd4oyyg1@localhost.localdomain>, "Octavio Alvarez" <alvarezp@alvarezp.ods.org> wrote:
> > So... what does git reset do? > > Sets the current head (and branch, if not detached) to the specified > commit...
Ah. It's the "and branch" part that I was missing. Thanks!
Hm... maybe "detached head" is not as inappropriate a term as I first thought. When you checkout a branch, HEAD really is "attached" to the branch insofar as the branch head gets "dragged along" on commits and resets. (Have I got that right?)
rg