Git clone

Moving repository between TFS servers was very challenging task. It was possible but very complicated and almost every time I've seen it done in companies it ended up in history and branching lost.
Recently I was planning moving git repository between VSTS accounts. Normal situation project starts as POC and ends up as always working solution. In git there is no problem at all to move repository with all the history and branches in 3 lines.

And that's really it. And the fun part is that it's fast because we don't pull all the code but only object definitions.

Update:
The mirror can be maintained in sync thanks to command:
git remote update
and again 
git push --mirror https://yourNewAddress.visualstudio.com/defaultCollection/_git/newProjectName

Comments

Popular posts from this blog

Azure post deployment scripts

Mobile view lifecycle. Fixing Xamarin.Forms Page lifecycle

Mobile application life-cycle Android vs iOS vs Xamarin.Forms