how to create a new git repository from an existing one

后端 未结 3 1054
渐次进展
渐次进展 2020-12-07 10:28

I have a remote git repository that really replaced everything we had in another older SCM. Many projects and products have been added to the repository over the years.

3条回答
  •  不知归路
    2020-12-07 11:11

    If you're not worried about losing history, do a git checkout mybranch and then copy the directory contents to another folder. Within that folder, delete the .git folder and then:

    git init; git commit -a -m "Imported from project Y"
    

提交回复
热议问题