Reputation: 1338
I have a Git repository hosted on Team Foundation Server 2015.
I need to leave it unchanged (in order to create new releases and do some maintenance).
And I want to create new version of the product (having a lot of branches and so on) with massive code change starting from the current state of the project.
Therefore I need to have the same Git repo alongside of given one (with all history available).
How to do this?
Upvotes: 1
Views: 1093
Reputation: 115017
The steps are relatively simple:
git clone --mirror https://tfs/clone/url
.git remote add target https://tfs/clone/new/repo/url
git push target --mirror
Upvotes: 1