GitHub
RubyMine 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.
Register a GitHub account
To be able to retrieve data from a repository hosted on GitHub, or share your projects, you need to register your GitHub account in RubyMine.
Register an existing account by signing in to GitHub
Press Ctrl+Alt+S to open settings and then select
.Click .
Select Log In via GitHub.
Enter your GitHub credentials in the browser window that opens. 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.
Register an existing account with a token
Press Ctrl+Alt+S to open settings and then select
.Click .
Select Log In with Token.
Do one of the following:
If you already have a token, insert it in the Add GitHub Account dialog window:
If you want to obtain a new token, click Generate.
Enter your GitHub credentials in the browser window that opens. 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.
In the token generation page, make sure that the repo, the gist and the read:org scopes are enabled (refer to Understanding scopes).
Click Generate token, copy the token, and paste it into the Add GitHub Account dialog window.
Click Add Account
See Creating a personal access token for more details on GitHub tokens.
Update an expired token
When your token expires, you see the following warning when trying to push changes to the GitHub repository:
Click Use Token.
Do one of the following:
If you already have a token, insert it in the Log In to GitHub dialog window:
If you want to obtain a new token, click Generate.
Enter your GitHub credentials in the browser window that opens. 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.
In the token generation page, make sure that the repo, the gist and the read:org scopes are enabled (refer to Understanding scopes).
Click Generate token, copy the token, and paste it into the Log In to GitHub dialog window.
Click Log In
Create a new GitHub account
Press Ctrl+Alt+S to open settings and then select
.Click .
Select Log In via GitHub.
In the browser window that opens, click Create an account and complete the registration process on GitHub.
Return to the RubyMine settings, click Cancel, and then repeat steps 2 and 3.
Click Authorize JetBrains in browser.
Manage multiple GitHub accounts
You can use multiple GitHub accounts in RubyMine: for example, a personal account to work on an open-source project, and a corporate account for your main job.
Press Ctrl+Alt+S to open settings and then select
.Use the button to add as many accounts as you need.
(Optional) To set an account as a default one for the current project, select it and click . If a default account is set, RubyMine will not ask you to select an account you want to use when you share your project on GitHub, rebase a fork, create a pull request, or create a gist.