2016/01/30 visual studio github와 연동하기

http://stackoverflow.com/questions/19982053/how-do-i-add-an-existing-solution-to-github-from-visual-studio-2013 에 있는 내용
  1. Open the solution in Visual Studio 2013(same on v2015, 솔루션 열기)
  2. Select File | Add to Source Control(파일-소스제어)
  3. Select the Microsoft Git Provider
That creates a local GIT repository
  1. Surf to GitHub
  2. Create a new repository DO NOT SELECT Initialize this repository with a README
That creates an empty repository with no Master branch
  1. Once created open the repository and copy the URL (it's on the right of the screen in the current version)
  2. Go back to Visual Studio
    • Make sure you have the Microsoft Git Provider selected under Tools/Options/Source Control/Plug-in Selection
  3. Open Team Explorer
  4. Select Home | Unsynced Commits
  5. Enter the GitHub URL into the yellow box (use HTTPS URL, not the default shown SSH one)
  6. Click Publish
  7. Select Home | Changes
  8. Add a Commit comment
  9. Select Commit and Push from the drop down
Your solution is now in GitHub
솔루션 열고 소스제어에 추가 클릭
대화상자가 나오는데  Microsoft Git Provider (나는 다른 이름이었는데 기억이 안남. 2번째였음)로 설정
방금 대화상자에서 항상 설정유지를 해버려서 취소하는 방법을 찾아봤더니 이렇게 나오는데 변경할 순 있는데 대화상자가 다시 나오지는 않더라
 깃허브에 repository 추가한 후 그림에 나온 URL 복사


 팀 탐색기에서 동기화 클릭
 원격 리포지토리에 게시에 복사한 URL 붙여넣기 이렇게 변한다 변경 내용 클릭

 코멘트 써준 뒤 커밋 후 푸시로 올린다.

댓글