Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8757099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:13:26+00:00 2026-06-13T14:13:26+00:00

Github for Windows just bombed when I tried making a commit and now git

  • 0

Github for Windows just bombed when I tried making a commit and now git (command line) is telling me every file is new. I’ve still got a .get folder which is 53mb in size. I’d made about 60 to 100 commits previous to this.

How can I recover my working copy without losing any history or changes?

Git status says:

On branch master

Initial commit

Changes to be committed:
(use “git rm –cached …” to unstage)

new file: .gitattributes
new file: .gitignore
… (1620 more files)

Changes not staged for commit:
(use “git add …” to update what will be committed)
(use “git checkout — …” to discard changes in working directory)

modified: Src/Foo/Bar/Index.cshtml

Untracked files:
(use “git add …” to include in what will be committed)

The Posh Git command prompt looks like this

C:\Projects\Foo [master +1623 ~0 -0 | +0 ~1 -0]>

The output from git log is as follows

C:\Projects\Foo [master +1623 ~0 -0 | +1 ~1 -0 !]> git log
fatal: bad default revision ‘HEAD’

UPDATE

I just ran “Verify Database” from the Git GUI and it came back with the following:

dangling tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904 dangling commit
30855e0deee8600f10733e6760db54fee2570a38 dangling commit
cd8bc69ad56ca5c4d51d0d5028525698158cf3ec dangling commit
c934f9823d907cd69c5e08a0159b9de4dfe3da35 dangling commit
f958caca247978db978b70460276b5da7582bb06 notice: HEAD points to an
unborn branch (master) notice: No default references

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:13:28+00:00Added an answer on June 13, 2026 at 2:13 pm

    ok, first, I duplicated my working copy so I always had a fallback position. Next I ran git fsck which gave the following output.

    > dangling tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904 dangling commit
    > 30855e0deee8600f10733e6760db54fee2570a38 dangling commit
    > cd8bc69ad56ca5c4d51d0d5028525698158cf3ec dangling commit
    > c934f9823d907cd69c5e08a0159b9de4dfe3da35 dangling commit
    > f958caca247978db978b70460276b5da7582bb06 notice: HEAD points to an
    > unborn branch (master) notice: No default references
    

    From here, I used

    git checkout <some-hash>
    

    Working through the hashes of the dangling commits above. Turns out, the last dangling commit was my most recent commit, so git checkout c934f9823d907cd69c5e08a0159b9de4dfe3da35 got me back to my working copy before the crash.

    From here I did git checkout -b master which recreated my master branch at this commit. git status now shows one change, which was the commit I was trying to make. Committing that gets me right back on track.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to git. I use Windows, and github & bitbucket. I set up
I've just installed Git using http://windows.github.com/ on our server. It seems to be installed
I've just installed Git using http://windows.github.com/ It seems to be installed correctly but I'm
I've just started using GitHub for Windows, and I can't figure out how to
Github recently released a new Windows application , with some very interesting UI ideas.
I have followed the instructions here: http://help.github.com/win-set-up-git/ to set up git on my windows
My GitHub app seems to be adding new SSH keys to github every time
Just wondering if there's anyone out there with both TortoiseGit and the GitHub Windows
I'm just learning about Git and GitHub stuff, so I'm reading a tutorial where
I'm just starting out with Git. I've signed up with Github, installed Git for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.