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

RE: Repo in strange state

From
CIChristohper Boorman (Protiviti Inc) <v-cboorman@microsoft.com>
Date
Dec 29, 2020, 20:03 UTC
Message-ID
<MWHPR21MB0160BA0EDE4DCDDDA96FC79F8BD89@MWHPR21MB0160.namprd21.prod.outlook.com>
In-Reply-To
<MWHPR21MB0160A79296BD2875F99B5C1B8BD89@MWHPR21MB0160.namprd21.prod.outlook.com>
Hi,
I attempted to paste a command into the git bash, but accidentally selected "Select All". The next thing I knew, the bash scrolled like crazy, as it tried to execute dozens of commands. I couldn't get it to stop scrolling, so I closed the bash window.
Now I'm in a strange situation: 

$ git status On branch master Your branch is up to date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        FETCH_HEAD
nothing added to commit but untracked files present (use "git add" to track)
I attempted to use git restore FETCH_HEAD, but I got an error (git said it's not a file).
So how do I fix this situation? Any help would be appreciated.
Thanks,
Christopher Boorman
Message 1 of 1 in “RE: Repo in strange state”
  1. Christohper Boorman (Protiviti Inc)Dec 29, 2020

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.