How do I add an existing Solution to GitHub from Visual Studio 2013

前端 未结 8 670
余生分开走
余生分开走 2020-11-29 14:43

I have looked through many web pages on the new Git integration in VS 2013 and they do not deal with adding an existing solution to Github. In fact I can\'t find much on us

8条回答
  •  天涯浪人
    2020-11-29 15:08

    Well, I understand this question is Visual Studio GUI related, but maybe the asker can try this trick also. Just giving a different perspective in solving this problem.

    I like to use terminal a lot for GIT, so here are the simple steps:

    Pre-requisites...

    • If it's Linux or MAC, you should have git packages installed on your machine
    • If it's Windows, you can try to download git bash software

    Now,

    1. Goto Github.com
    2. In your account, create a New Repository
    3. Don't create any file inside the repository. Keep it empty. Copy its URL. It should be something like https://github.com/Username/ProjectName.git

    4. Open up the terminal and redirect to your Visual Studio Project directory

    5. Configure your credentials

      git config --global user.name "your_git_username"
      git config --global user.email "your_git_email"
      
    6. Then type these commands

      git init
      git add .
      git commit -m "First Migration Commit"
      git remote add origin paste_your_URL_here
      git push -u origin master
      

    Done...Hope this helps

提交回复
热议问题