2016-11-22 12 views

答えて

2

IntelliJは、プロジェクトのルートディレクトリに.gitディレクトリが見つかるとすぐに、gitリポジトリを自動的に検出して「追加」します。実行する必要があるステップは、プロジェクト用にGitリポジトリが既に初期化されているかどうかによって異なります。ない場合は、最初の(あなたはすでにあなたのプロジェクトでgitリポジトリを持っている場合は)あなたが「接続」することができます(IntelliJのでターミナルウィンドウを開くために、ALT + F12を押すことにより)ターミナルを開き、その後

git init 

を実行しますこのリポジトリはGithubのプロジェクトに

git remote add origin GIT_URL_ON_GITHUB 

となります。IntelliJはリポジトリを見つけてgitサポートを提供します。あなたはIntelliJのためのGitのプラグインを持っている場合は、変更をコミットし、バージョンcontrollに行き、その後、あなたはプッシュすることができ、https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/

その後:

0

次の手順でGitのリポジトリとして、プロジェクトのローカルディレクトリを初期化することができます。

0

あなたがIDEAホットキーにどれほど親しみがあるかわからないので、トップナビゲーションバーを使用している指示:VCS -> Enable Version Control Integration -> Select your version control system (Git in your case) -> Wait for IDEA to update project -> Your project hierarchy now shows all files in brown color -> Select the files you want to commit -> Right click and select Git-Add -> In the bottom navigation bar you should also see "9: Version Control" -> Click on this button -> The window with uncommited changes appears and recently added files are green-colored -> Select the files you want to commit -> Right click on the files -> Select "Commit Changes" from the popup menu -> Specify commit message -> Hover over the "Commit" button -> Press "Commit and Push" -> In the dialog you can specify the master branch of your origin repo on Github -> Press Push after that -> You're done

私はスムースを逃したかどうかお気軽にお問い合わせください。でる。

関連する問題