From: Jeff King Date: Tue, 23 Aug 2011 21:15:36 GMT Subject: Re: Looking for a way to turn off/modify ref disambiguation Message-ID: <20110823211536.GA7759@sigill.intra.peff.net> In-Reply-To: On Tue, Aug 23, 2011 at 02:26:48PM -0500, Nathan W. Panike wrote: > 1. If $GIT_DIR/ exists, that is what you mean > (this is usually useful only for HEAD, FETCH_HEAD, ORIG_HEAD, > MERGE_HEAD and CHERRY_PICK_HEAD); > 2. otherwise, refs/ if it exists; > 3. otherwise, refs/tags/ if it exists; > 4. otherwise, refs/heads/ if it exists; > 5. otherwise, refs/remotes/ if it exists; > 6. otherwise, refs/remotes//HEAD if it exists. > ... > > Is there any way to change this behavior, e.g., so that rule 6 becomes > an error? Say, by setting a config option? You can remove the remote HEAD reference with: git remote set-head origin -d That will only fix that particular repo, though. There is no config option to disable it for all newly cloned repos. -Peff