I just Git init’ed a repos with a wrong user, and want to undo it. Is there any command for this? Do I actually have to go in and edit the .git directory?

6 s
6

You can just delete .git. Typically:

rm -rf .git

Then, recreate as the right user.

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *