Skip to content

How to undo a Repo creation on a User file #23878

Discussion options

You must be logged in to vote

If C:\Users\gamer is the accidental repository, there is a C:\Users\gamer\.git directory, which holds the repository data. Delete that to get rid of the repository.

⚠️ Warning: Deleting the .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.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants