how to create a new git repository from an existing one

后端 未结 3 1038
渐次进展
渐次进展 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:05

    Pull down the branch like normal and then push the branch to a new repository that you have created using git init. You would use code that looks something like:

    git push url:///new/repo.git TheBranchFolder
    

    This method also keeps all of your previous changes if that is a plus for the situation.

提交回复
热议问题