I am totally new to git and I can't figure out how to solve the problem. When I clone project from remote repository there's a duplicate ".git" folder in it and it looks something like: repo/.git/trueprojectfiles(including real .git containing indexes)
my problem is that the git looks for index files in the fake .git folder and fails. As a result I can't do any changes to repository. How can I make repository to look like this: repo/trueprojectfiles
and push the changes to remote?
Asked
Active
Viewed 332 times
1

JulioBordeaux
- 494
- 1
- 7
- 23
-
could it be that you created `repo/.git` before you cloned and typed `git clone
.` while being in `repo/.git`? – eckes Jul 25 '14 at 10:42 -
As long as you didn't commit anything yet, delete the repo (http://stackoverflow.com/questions/1213430/how-to-fully-delete-a-git-repository-created-with-init) and re-create it (http://stackoverflow.com/q/9864728/520162) – eckes Jul 25 '14 at 10:44
-
I just figured out that the directory is created when i run git clone command. are there any configurations to stop doing that? – JulioBordeaux Jul 25 '14 at 10:54
-
yes, of course it gets created during `clone`. Did you read the 2 questions and their answers? – eckes Jul 25 '14 at 10:58
-
Wow, i cant believe it worked, I spent so much time on it trying everything. Thank you very much! – JulioBordeaux Jul 25 '14 at 11:08