Issue
I configured my own git server on my raspberry pi using this tutorial: https://www.sitepoint.com/setting-up-your-raspberry-pi-as-a-git-server/
This worked fine and I continued by downloading git for windows: https://git-for-windows.github.io/
I connected to my local git repository with an url like this: [email protected]:/home/git/Hello-World.git
I was able to commit and push changes to my raspberry. Therefore I wanted to try that in my Visual Studio Community 2015. I added the folder where the git-for-windows GUI placed the cloned repository and was able to change files and commit them. But Visual Studio told me that I need to sync the changes to the remote repository. That seemed right to me. I clicked on Sync and then Publish (Push is disabled). That didn't work and an error told me that the URL protocol is unsupported.
"Error encountered while publishing branch to the remote repository: Unsupported URL protocol"
I don't know what is wrong with this URL because it is working in the git-gui. Is there a quick fix for it? Did I miss something?
Solution
Using Team Explorer with repos managed via the SSH protocol are still not supported. See here: https://connect.microsoft.com/VisualStudio/feedback/details/1290535/unsupported-url-protocol-in-git-provider
Answered By - marchWest Answer Checked By - David Marino (WPSolving Volunteer)