On Tue, 9 Jun 2015 09:43:57 -0700 (PDT)
Hannah Scheibner <hannahscheib...@googlemail.com> wrote:

> There must be some quick fix but I just can't figure out how to do it:
> I initialized a git repository on my local computer, but
> unfortunately at the wrong place, i.e. in the wrong directory. 
> How can I undo this or move the working directory that my git
> repository is synched with?
> In my example, instead of initializing my repository
> in /home/git/rep1, I initialized it in /home ... :S

What do you mean by "initializing"?
Did you just run `git init` in the wrong place and nothing more?
If yes, then just do

  rm -rf ~/.git

and that's all there is to it: `git init` merely creates its
"repository" directory named ".git" in the current directory, which it
starts treating as the work tree.

If you've managed to add some files to it (like by doing `git add .`)
then there's nothing bad about it -- Git have just copied the contents
of those files under .git.

After you have got rid of that unneeded directory ".git", just go on
and initialize a repository whereever you want it.

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to