![]() ![]() Specify your access token or request a new one with your login and password. If you have not registered your account in IntelliJ IDEA, the Login to GitHub dialog opens. If you have already registered your GitHub account in IntelliJ IDEA, connection will be established using these credentials. You can add a remote GitHub repository for a project you are developing locally, so that others can view it or contribute to it.įrom the main menu, choose Git | GitHub | Share Project on GitHub. IntelliJ IDEA will automatically set Git root mapping to the project root directory. If you want to create a project based on these sources, click Yes in the confirmation dialog. In the Directory field, enter the path to the folder where your local Git repository will be created. Select a repository from the list of all GitHub projects associated with your account and the organization that your account belongs to. 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. If you have a token, click Use token, then paste the token in the Token field, and click Log In.Įnter your GitHub credentials in the browser window that opens. Log in to GitHub by doing one of the following: In the Get from Version Control dialog, choose GitHub on the left. If the Git menu is not available, choose VCS | Get from Version Control. You can clone a repository that you want to contribute to directly from IntelliJ IDEA and create a new project based on it.įrom the main menu, choose Git | Clone. ![]() If you cannot view pull requests in the IDE, or you get an error when you log in to a GitHub account and perform any git operation, refer to the Operations Against a GitHub Repository Are Failing article for troubleshooting tips.Manage projects hosted on GitHub Check out a project (clone) If a default account is set, IntelliJ IDEA 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. (Optional) To set an account as a default one for the current project, select it and click. Use the button to add as many accounts as you need. You can use multiple GitHub accounts in IntelliJ IDEA: for example, a personal account to work on an open-source project, and a corporate account for your main job. Return to the IntelliJ IDEA settings, click Cancel, and then repeat steps 2 and 3. In the browser window that opens, click Create an account and complete the registration process on GitHub. If you already have a token, insert it in the Log In to GitHub dialog window:Ĭlick Generate token, copy the token, and paste it into the Log In to GitHub dialog window. When your token expires, you see the following warning when trying to push changes to the GitHub repository: See Creating a personal access token for more details on GitHub tokens. ![]() 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 ![]() 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |