Is it safe to use a copied git repo?

前端 未结 3 1042
南笙
南笙 2021-02-11 16:32

If I make a copy of a tracked folder using rsync -a or cp -R, can I then use the copy as if it were a git clone, or will that cause all sorts of weird

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-11 17:01

    When you clone someone else’s repository, it basically just copies the contents of this directory to your computer.

    From the real good Git Internals (Scott Chacon) from Peepcode Press. (Page 44) So just the reference to the origin is missing as far as I'm concerned/I see.

    With best regards.

提交回复
热议问题