1

When adding a remote (or closing) from another local git repository, is there a functional difference between pointing at the ‘.git’ directory inside the working copy and pointing at the just working copy?

I.E. Is there any difference in how fetching/pushing/pulling from within ‘a-repo’ will work, ‘a-repo’ is cloned with:

git clone ~/Projects/some-old-repo/.git ~/Desktop/a-repo

vs.

git clone ~/Projects/some-old-repo ~/Desktop/a-repo
BradleyDotNET
  • 60,462
  • 10
  • 96
  • 117
Slipp D. Thompson
  • 33,165
  • 3
  • 43
  • 43

1 Answers1

0

I would say that there is no difference. Typically when you clone a bare repository, the working copy is empty, and nethertheless, the result of the cloning is the same whatever you point on the .git folder or the directory containing the .git folder...

Yanflea
  • 3,876
  • 1
  • 14
  • 14
  • It looks like you are correct, kind sir. I've been testing this out myself a bit more as of recent, and it seems functionality is identical in every way (as @Kevin Ballard suggested above). Thank you both for your insight! – Slipp D. Thompson Jul 30 '12 at 00:06