Reset local git repository

Viewed 58391

A few days ago I created a repository on Github, then followed the steps to add my existing solution to it. I have no idea what I did wrong, but after a few random 'git add' commands and whatnot, I now get the message in github for windows:

failed to sync this branch.
You might need to open a shell and debug the state of this repo.

Not gonna happen.

A better idea is that I delete the repository at github and start over with my local repository. I know how to delete the repository on github (I know it is easy because I have already done this once.) I am not sure how to start over locally. Is there a git command that is basically "git uninit" or "git deconstruct repository" ?

6 Answers

I'm pretty sure I found this in another stackoverflow (if I see that one I'll put the link here) but restarting Windows actually fixes this problem for me. If I remember right, this is related to Github for Windows updating.

There may be another way to get the app to update correctly and sync without restarting. Everytime I've had this issue though, restarting Windows fixes it.

Related