From: SZEDER Gábor Date: Mon, 13 Jan 2020 00:42:35 GMT Subject: Re: Fwd: Issue with Git Branch Message-ID: <20200113004235.GI32750@szeder.dev> In-Reply-To: <20200113001143.GA13099@syl.local> On Sun, Jan 12, 2020 at 04:11:43PM -0800, Taylor Blau wrote: > On Sun, Jan 12, 2020 at 07:01:04PM -0500, Jude Guan Wang wrote: > > I noticed something weird with my git command. In my local > > environment I seem to have a branch named `-D`: > > > > And I don’t remember how I was able to create a branch like that. > If you do find a reproducible way to create branches named '-D' or > similar, please do let us know, as these are not intended to be valid > branch names in general. $ git update-ref refs/heads/-D master $ git branch |head -n1 -D