Introduction
I faced two problems when switching to Git. A lot of things to know, so hopefully this tip will be helpful.
*** Beware .... this description matches 2015 until update 1.... Below there is a (small) description of the new way.
Start with Cloudforge Git
Activate your git in cloudforge by adding the git service to your project.
Remember to take your top URL of the git URLs.
Open your project in VS.
Svn Users to git, Take These Steps
Start making a copy of your project.
Menu -> file -> subversion -> change source control
Disconnect the listed solution/projects and confirm.
Menu -> tools-> options
Choose Sourcecontrol
Switch "current source control plug in" to "Microsoft git provider" and confirm
(if you get the message contains "active solution or project will be closed", repeat the first steps.)
Connect Project to (cloudforge) git
Right-click solution and choose "Add solution to Source control"
Your project(s) will appear in team explore changes (included changes) (some files can be found in untracked files).
Fill in your commit message and commit.
Go to the carret right to the changes menu item and choose sync.
Below in the publish choose the last item "publish to remote repository"
Press the button and fill the yellow box with the git url and press publish.
Press "sync", or if needed "pull" first.
Check your source control (cloudforge) for the input.
Small Thing After All
You can delete the .svn folder in your project map.
In your .sln, you can remove:
GlobalSection(SubversionScc) = preSolution
Svn-Managed = True
Manager = AnkhSVN - Subversion Support for Visual Studio
EndGlobalSection
Test your solution by running it.
GOOD LUCK!
Update
By git trouble:
Just delete the .git folder.
You can pretty much start fresh on top.