From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ron Garret Subject: Re: What does git reset do? Date: Tue, 02 Feb 2010 00:24:26 -0800 Organization: Amalgamated Widgets Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Tue Feb 02 09:25:15 2010 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NcE4Q-0004LB-PH for gcvg-git-2@lo.gmane.org; Tue, 02 Feb 2010 09:25:15 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754365Ab0BBIZJ (ORCPT ); Tue, 2 Feb 2010 03:25:09 -0500 Received: from lo.gmane.org ([80.91.229.12]:55021 "EHLO lo.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752774Ab0BBIZI (ORCPT ); Tue, 2 Feb 2010 03:25:08 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NcE4I-0004Gc-UL for git@vger.kernel.org; Tue, 02 Feb 2010 09:25:06 +0100 Received: from 68-190-211-184.dhcp.gldl.ca.charter.com ([68.190.211.184]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Feb 2010 09:25:06 +0100 Received: from ron1 by 68-190-211-184.dhcp.gldl.ca.charter.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Feb 2010 09:25:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 68-190-211-184.dhcp.gldl.ca.charter.com User-Agent: MT-NewsWatcher/3.5.1 (Intel Mac OS X) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: In article , "Octavio Alvarez" 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