Visual Studio For Mac Always Asking For Git Credentials

Posted on  by 

Visual Studio for Mac Enterprise Edition version 7.3.3 build 23 is unable to connect to TFS 2017 remote GIT repository, the Git-CredentialManager-for-Mac is installed, git clone works perfectly from terminal, but the VS for Mac is not able to present AD credentials and keep asking to reenter credentials in a infinite loop.

We fixed an issue where the mouse cursor is always an arrow and Visual Studio Mac. We fixed an issue where the text on the Git credentials pop up window was formatted incorrectly. Project System. Visual Studio 2017 for Mac Preview Release Notes History. How to connect to TFS on Visual Studio for Mac Release Preview. I tried entering the url using the subversion option and it did ask me for credentials but the correct credentials never worked. Visual-studio team-foundation-server. Git in Visual Studio 2013 stops working abruptly.

Active2 years, 4 months ago

I am setting up Xamarin with Team Foundation Service + git to develop iOS apps. I have tried many different settings trying to set up my TFS + git integration on our MAC with no avail. I keep getting exceptions of either not authorized or failed to fetch.

Jonathan Nixon
3,8264 gold badges33 silver badges49 bronze badges
Chris - Haddox TechnologiesChris - Haddox Technologies
1,6361 gold badge15 silver badges32 bronze badges

5 Answers

I am going to list all steps I took to be as complete as possible.

  1. First of all, I created a hosted TFS account and added a New Team Project + Git
  2. I then had to create alternative login credentials since you cannot have an @ symbol in your login info. To set up alternate creds in Visual Studio Team Services (VSTS), click on your name on the top right -> My Profile -> Credentials
  3. After enabling the alternative credentials open Xamarin Studio. In my case I had a solution that I wanted to add so I had my solution file open as well.
  4. Under the Version Control menu item select Publish (Only available with solution file open)
  5. Select the Registered Repositiories tab and select Add
  6. Enter an appropriate name. Select https protocol.
  7. Enter your hosted TFS URL ie. xxx.visualstudio.com.
  8. For port, enter 443.
  9. The path will be: /DefaultCollection/_git/ + project name (exactly as you typed it including spaces)
  10. User will be the alternative username you created in step 2. Click OK on both open windows.
  11. You will be prompted to confirm publishing. Select OK.
  12. You will then be prompted for your password. Enter you alternative password you created in step 2. If you accidentally enter the wrong password here, you must delete the entry from your key chain. Instructions can be found here

Your TFS + git integration with Xamarin Studio should be complete! If you have any other issues I will try my best to help with them.

Chris - Haddox TechnologiesVisual studio for mac always asking for git credentials cacheChris - Haddox Technologies
1,6361 gold badge15 silver badges32 bronze badges

In step 12. on Windows 8 and you entered the wrong password you will have to fix it in Credential Manager.

In windows 8

In Control Panel,Open Credential Manager,On the top of the page you have two options, select 'Windows Credentials'.Under 'Generic Credentials' look for a record for 'your.visualstudio.com' click to expand and select remove.Now if you publish from Xamarin Studio you will be prompted for your password again.

findsjefindsje

I had problems connecting to my visualstudio.com repository even when following these instructions. What I did was to use XCode to checkout (or clone) the repository. I then opened my solution in Xamarin and it picked up the repository info just fine.

user3024922user3024922

I use git-tf, which is a command line tool. But once you clone the repository you are able to use all the functionality like blame, revert, commit. It works with the new OSX version of Visual Studio as well.

Visual Studio For Mac Always Asking For Git Credentials Windows

Antarr ByrdAntarr Byrd

Visual Studio For Mac Always Asking For Git Credentials

Visual
10.6k24 gold badges74 silver badges131 bronze badges
For

This is the best solution I found to connect Xamarin/Visual Studio Mac to TFS:

Sérgio DamascenoSérgio Damasceno

Visual Studio For Mac Always Asking For Git Credentials Store

Not the answer you're looking for? Browse other questions tagged gittfsazure-devopsxamarin-studio or ask your own question.

Coments are closed