How to undo a Repo creation on a User file #23878
-
Hello, C:\Users\gamer and attempting to create a repo and any level lower than that generates errors. Any help would be greatly apricated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
If
|
Beta Was this translation helpful? Give feedback.
-
Thanks! I was able to use the the following command and committed it. git rm -r C:/Users/gamer That was able to remove the repo and I was able to push a change I made on my desktop to Github. |
Beta Was this translation helpful? Give feedback.
-
For any future reference: |
Beta Was this translation helpful? Give feedback.
If
C:\Users\gamer
is the accidental repository, there is aC:\Users\gamer\.git
directory, which holds the repository data. Delete that to get rid of the repository..git
directory does not delete your files, but it deletes all the history and configuration of that repository. Make sure you have the right one, and if there’s anything you want to keep (e.g. old versions of some files) extract it first.