integrity of linux copy of a git repo
- From
- Neal Kreitzinger <neal@rsss.com>
- Date
- Oct 1, 2010, 19:47 UTC
- Message-ID
- <i85dub$fp5$1@dough.gmane.org>
If I make a recursive linux copy, "cp -rfp", of a git repo working tree is the resulting copy interchangeable with the original?
e.g. /orig-wk-tree was created via git-clone with the file:/// url and therefore is a "full copy" cp -rfp /orig-wk-tree /orig-wk-tree-copy (do some stuff that breaks /orig-wk-tree) rm -rf /orig-wk-tree mv /orig-wk-tree-copy /orig-wk-tree
Have I truly recovered the full integrity of the original, or have I unwittingly introduced some sort of corruption?
v/r, Neal