Skip to content

Is there a command to undo git init? #118542

Discussion options

You must be logged in to vote

If you are Windows User try going to Desktop Directory using cmd(remember to run as administrator ==> V.imp) type dir
If you see .git folder then congratulations you have understood your problem
Now to tackle it just type

del .git

And if to use Linux/Ubuntu
try You can just delete .git. Typically:

rm -rf .git

Then, recreate as the right user.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MoviesKatta62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working correctly Codespaces Your development environment, in the cloud. Run VS Code and code on GitHub's cloud platform,
2 participants