git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Branch deletion question / possible bug?

From
TSTang (US), Pik S <pik.s.tang@boeing.com>
Date
Apr 28, 2018, 00:29 UTC
Message-ID
<d4d8d8208b6a41c380ecf20807763bcf@XCH15-05-02.nw.nos.boeing.com>
Hi,
I discovered that I was able to delete the feature branch I was in, due to some fat fingering on my part and case insensitivity.  I never realized this could be done before.  A quick google search did not give me a whole lot to work with...  
Steps to reproduce:
1. Create a feature branch, "editCss"
2. git checkout master
3. git checkout editCSS
4. git checkout editCss
5. git branch -d editCSS
Normally, it should have been impossible for a user to delete the branch they're on.  And the deletion left me in a weird state that took a while to dig out of.
I know this was a user error, but I was also wondering if this was a bug.
Thanks,
Pik Tang
Next: Jacob Keller
Message 1 of 5 in “Branch deletion question / possible bug?”
  1. Tang (US), Pik SApr 28, 2018
  2. Jacob KellerApr 28, 2018
  3. Philip OakleyApr 28, 2018
  4. Johannes SchindelinApr 28, 2018
  5. Tang (US), Pik SApr 30, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.