Re: Fwd: Issue with Git Branch
On Sun, Jan 12, 2020 at 04:11:43PM -0800, Taylor Blau wrote:
Show 5 quoted lines
> 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