2017-02-14 18 views
6

既存のソリューションをGithubに追加したいと思っています。私はたくさんのYouTube動画を見てきました。しかし、彼らは皆新しいプロジェクトの創造について私にしかわかりませんでした。 Githubに既存のプロジェクトを追加するにはどうしたらいいですか? Visual Studio 2017 Community Editionには、File-> Add to source controlオプションはありません!Visual Studio 2017からGitHubに既存のソリューションを追加するにはどうすればよいですか?

+0

ちょうどこれをお読みください。https://github.com/blog/2285-github-extension-now-supports-visual-studio-2017-rc –

+0

githubから最初に新しいリポジトリを作成し、コードを挿入します。 – Pavvy

+0

を参照してください。https://stackoverflow.com/questions/42217847/how-do-i-add-an-existing-solution-to-github-from-visual-studio-2017 – Barka

答えて

12

あなたが手順の下に、以下のことでそれを達成することができます

1.Open the solution in Visual Studio 2017 
2.Select File | Add to Source Control 
3.Select the Microsoft Git Provider 

ノーマスターブランチ

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 

と空のリポジトリを作成し、ローカルのgitリポジトリ

1.Browse to GitHub 
2.Create a new repository DO NOT SELECT Initialize this repository with a README 

を作成しますこれが役立つことを願って、あなたのソリューションは今ギタブにあります

+4

「ホーム|非同期コミット」が表示されません。手順4で –

1

は、ステップバイステップのインストラクションです。

関連する問題