Is there a command to undo git init?

Question

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?

Answer

You can just delete .git. Typically:

rm -rf .git

Then, recreate as the right user.

Git - Pushing code to two remotes

Choose Git merge strategy for specific files ("ours", "mine", "theirs")