Assume a remote repo which filesystem is a folder, say MyRepo
, that contains other folders, say A1, A2
and A3
, and assume that those folders contains a bunch of files that I am tracking. Assume that I want to clone such a repo in C:\Foo
, where Foo
is a folder. I move into C:\Foo
, run git init
thus obtaining C:\Foo\.git
folder. Then, I clone
obtaining
C:\Foo\.git
C:\Foo\MyRepo
C:\Foo\MyRepo\.git
C:\Foo\MyRepo\A1
C:\Foo\MyRepo\A2
C:\Foo\MyRepo\A3
I have two .git folders. My questions are
- Is that possible to remove
C:\Foo\.git
? - In general, does the location of the .git folder makes difference? For example, if I overwrite
C:\Foo\.git
withC:\Foo\MyRepo\.git
would that create problems?