From: Duy Nguyen Date: Thu, 24 Aug 2017 08:59:57 GMT Subject: Re: Undocumented change in `git branch -M` behavior Message-ID: In-Reply-To: <20170823201334.bz42s6t5ti4jdaqm@pitfall> On Thu, Aug 24, 2017 at 3:13 AM, Nish Aravamudan wrote: > Hello, > > Hopefully, I've got this right -- I noticed a change in behavior in git > with Ubuntu 17.10, which recently got 2.14.1. Specifically, that when in > an orphaned branch, -M ends up moving HEAD to the new branch name, > clobbering the working tree. Thanks for the report. I think I see what's going on. I need some more time to come up with a patch but yes this is definitely a bug (and caused by my commit) -- Duy