From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Proper git settings to stay with master? Date: Sat, 24 Dec 2016 12:15:01 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKkIS-0001FR-0r for emacs-orgmode@gnu.org; Sat, 24 Dec 2016 06:15:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKkIO-0007ip-Qn for emacs-orgmode@gnu.org; Sat, 24 Dec 2016 06:15:27 -0500 Received: from [195.159.176.226] (port=43032 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cKkIO-0007iZ-KR for emacs-orgmode@gnu.org; Sat, 24 Dec 2016 06:15:24 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cKkI6-0002Qp-9w for emacs-orgmode@gnu.org; Sat, 24 Dec 2016 12:15:06 +0100 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Am 23.12.2016 um 20:49 schrieb John Hendy: > Sure... I get that that I *can* do that. I just wondered why I > *needed* to do that. When you are in a "detached HEAD" situation, you will always have to tell git explicitly to switch to some other commit (most likely a branch). Git pull works with branch heads, but you've not checked out any, so it won't do anything and can't, since it will potentially lose data if it tried. > This makes sense. I don't know why this never happened before, but > checking out a specific commit makes sense. Checking out a specific commit not at the branch head, to be precise. > Perhaps I was bisecting > something in the past and checking out various commits? Once you check > out *something*, do you always have to re-checkout something else to > undo this effect (and make it like the default)? As in if I check out > a commit and then =git pull=, it won't go back to master? Git status tells you where you've currently checked out. -- Achim. (on the road :-)