githubvisual-studio-2015appharbor

How do I commit to a remote repository on Visual Studio?


I figure this may be somewhat of a common question, but I am still having trouble with what I am finding. Note: I am very new to deploying applications. I have created my first application, an ASP.NET MVC application using Visual Studio Community 2015(I am using enitity framework for the database if that matters). It is time for me to deploy it. I have all my files on gitHub. Now I believe it is time for me to commit to my remote repository on AppHarbor (which I have the link for), but I just can't seem where to do it. It seems to be so simple. I'm using the team explorer. Again, I am very new to programming and deploying applications, so any help would be amazing. Again, from what I understand I need to connect to my remote repository now. I could be wrong. Thank you very much for any insight.


Solution

  • Inside Visual Studio, open the 'Team Explorer - Connect' Window. Default Shortcut for that should be Ctrl+/ + Ctrl+M.

    Inside the Team Explorer window, Click on the green plug like button that you see that says "Manage Connections". You will be able to connect to your remote repo from here.

    After that, Click on 'Clone' and paste your repo's URL in the yellow text box:

    Paste your Remote repo's URL here

    If your remote repo is on the GitHub, this is where you can find the URL to your remote repo: URL to remote repo


    Well, that's it.. you're connected! To commit your changes, you can easily find the "Changes" section in 'Team Explorer' window. Here's a screenshot for that too: Commit your changes.

    Note that in my case some of the buttons shown may be Disabled. That should not be a problem to you if you have files with changes, etc.