

In the token generation page, make sure that the repo, the gist and the read:org scopes are enabled (see Understanding scopes).Ĭlick Generate token, copy the token, and paste it into the Add GitHub Account dialog window. If you want to obtain a new token, click Generate. If you already have a token, insert it in the Add GitHub Account dialog window: Register an existing account with a token

If you have two-factor authentication enabled, you will be asked to enter a code that will be sent to you by SMS or through the mobile application. Press Ctrl+Alt+S to open the IDE settings and select Version Control | GitHub.Įnter your GitHub credentials in the browser window that opens. Register an existing account by signing in to GitHub If you do not want to specify your credentials each time you sync with a remote, or push your commits, you can configure IntelliJ IDEA to save your account information (see Configure a password policy). To be able to retrieve data from a repository hosted on GitHub, or share your projects, you need to register your GitHub account in IntelliJ IDEA.

IntelliJ IDEA lets you manage Git projects hosted on GitHub directly from the IDE: clone repositories, share your projects, create forks, share code through gists, create pull requests and review incoming pull requests.
