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" ?
Git stores everything about a repo at the repo's root in the hidden .git
folder. Simply deleting that folder, rm -rf .git
makes it as if there never was a repo there.
I got this error on GitHub for Windows when I had lost internet connection. Once I got connection back it sync'd up fine. Apparently the error messages on the windows client just aren't descriptive enough to tell you when you've lost connectivity. It was as simple as that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With