I want to have a private GIT repository on a Windows-10 PC on my local network, and access it from Xamarin Studio on my Mac (El Capitan).
Being new to GIT I first tried out things out using only GIT and SSH, that is, without Xamarin Studio, and that was successful. The steps I followed were:
Installed GIT on Windows-10.
On Windows-10, created a GIT repository using Git Bash on a subfolder of /~/git/repos/ named test.git as follows:
$ git init --bare
On the Mac, connected to the Windows repository folder - this step was probably unnecessary.
On the Mac, successfully cloned that repository from the Windows machine, using Terminal in an empty folder as follows:
$ git clone ssh://[email protected]/~/git/repos/test.git
Here william is the username on windows (more precisely a virtual username used by Bitvise to bind to the PKI and the real username).
So far so good. Now I created a new repository called fo.git on Windows, in the same way as above, and attempted to clone it onto the Mac in my Xamarin Studio project. The steps were:
Selected the solution in the project.
On the menu, Version Control -> Publish -> Registered Repositories -> Add.
Note: To get the Publish prompt I needed to delete an obsolete .git folder hanging about closer to the root directory.
Entered the following:
Url: ssh://[email protected]/~/git/repos/fo.git
Confirmed on 'Are you sure you want to publish the project?'.
I then got a small prompt window headed 'Xamarin Studio' asking for Username and Email. Its not at all clear to me what is wanted here or why, but I entered william for Username, and for Email I entered the email address I had supplied in the earlier PKI process. Notably there was no prompt for a password.
An error message was then issued:
Git Credentials / Credentials required for the repository ssh://[email protected]:22/~/git/repos/fo.git
Version control operation failed
UserNamePasswordCredentials contains a null Username or Password
After some thrashing I have no clue what to try next. Any help would be much appreciated.