Re: What does git reset do?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In article <op.u7hpv8nd4oyyg1@xxxxxxxxxxxxxxxxxxxxx>,
 "Octavio Alvarez" <alvarezp@xxxxxxxxxxxxxxxx> 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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]