git clone vs copy paste, what's the difference?

fajrian picture fajrian · Sep 5, 2011 · Viewed 11.6k times · Source

as stated in the subject

note: the git clone i mean is the git clone without any option, the one which is performed by doing "git clone /C:/my_origin_folder"

Answer

manojlds picture manojlds · Sep 5, 2011

This answer of mine regarding backup should give you some answer on clone vs copy: Moving a git repo to a second computer?

Main differences:

  1. When you clone, you get remote origin setup pointing to original repo, so that you can push to it.
  2. You don't get hooks and reflog ( and also old objects) and other remotes when you clone but you do when you copy

Note that when you clone with a folder path, the differences change subtly, as the objects and refs are usually just copied / hardlinked ( equivalent of --local which is the default with local folder paths)