I have a Visual Studio 2017 project which is under source control in an on premises TFS server. I would now like to move this to Azure DevOps environment. I know I can simply copy all the code except the git files and folder to a new location and add to Source Control from scratch. But with this solution all the history is lost.
Azure DevOps does has a feature to import project from another source control project but as my current TFS server is on premises it is not exposed to the outside world so this is not an option for me.
So my question is: Is it possible to detach from one repository and add to a new one?
To move all your branches and history from 1 repository to another:
git clone --mirror $URL
How the current man-page explains --mirror: