Thursday, February 1, 2018

Connecting to GitHub in Visual Studio Community for Mac

I am using build 7.3.3 of Visual Studio Community for Mac.

I have an existing repo on GitHub that contains a .gitignore for Visual Studio and a Readme file.

To add a project to the repo, I follow these steps:


  1. Create a new F# console project.
  2. Right-click the top level folder in the project and select Publish in Version Control.
  3. I am asked to enter my credentials. I cancel this operation, since I know it will fail until I perform an update from the repo.
  4. After cancelling the push, I can select update from the version control context menu for the solution.
  5. After entering my credentials, the update completes. (For some reason, I have to enter my credentials multiple times.)
  6. Now I can perform a push that will succeed. All of the files for the project will be added to the repo.
I am unable to store my username and password credentials in Visual Studio. I have added the credential manager at the command line, and am able to push, fetch, pull without having to re-authenticate. If anyone knows how to remember credentials in Visual Studio for Mac, please let me know.

No comments:

Post a Comment

Followers