Is it safe to use a copied git repo?

前端 未结 3 1041
南笙
南笙 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:02

    It's exactly the same, well, almost, if you want the same in 'project3' just do:

    git remote add origin /home/itsadok/project
    git branch -f master origin/master
    

提交回复
热议问题