I just Git init'ed a repos as the wrong user, and want to undo it. Is there no command for this? Do I actually have to go in and edit the .git directory?
+4
A:
If you just inited it, you can just delete .git. Typically:
rm -rf .git
Then, recreate as the right user.
Matthew Flaschen
2010-07-09 12:17:38
Thanks Mathew, but can you expound on "if you just inited it"- what if i've done some stuff since, a few commits etc, would simply removing this be a problem?
Yarin
2010-07-09 12:23:23
No, you can always just remove the entire `.git` subdirectory with no ill effects.
mskfisher
2010-07-09 12:26:56
Great thanks guys
Yarin
2010-07-09 12:29:09
@mskfisher: No ill effects besides your repository being gone, that is!
Jefromi
2010-07-09 15:51:15