If the file points to more than one remote, you will be prompted to select the appropriate repository. The remote version of the file will open in the browser. Select a file in the editor or in the Project view, and choose Open on GitHub from the context menu or from the Ctrl+Shift+A popup. If you are opening the GitHub file version from the editor, the file will be also automatically scrolled to the current line. IntelliJ IDEA detects which branch is currently active as well as the latest revision of the file, and opens the GitHub copy of the selected file in the corresponding commit in your web browser. You can jump from IntelliJ IDEA to the GitHub version of a file. You can select the Private option if you do not want to allow public access to your repository for other GitHub users.Ĭlick Share to initiate a new repository and upload project sources to it. Specify the new repository name, the name of the remote, and enter a description of your project. When connection to GitHub has been established, the Share Project on GitHub dialog opens. 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.Ĭlick Clone. You can select a repository from the list of all GitHub projects associated with your account and the organization that your account belongs to. You can add a remote GitHub repository for a project you are developing locally, so that others can view it or contribute to it. Specify the URL of the repository that you want to clone. IntelliJ IDEA will automatically set Git root mapping to the project root directory. I am getting annoying pop-ups a lot from git and would love to remove the entire git integration for now as I am not using git right now and would rather add it in future.
I have removed the remote repo but I want to remove the local repo. In the Get from Version Control dialog, choose GitHub on the left. I had initially configured IntelliJ to push to my github repo.
The Git menu is available when you have set up a Git repository for your project. 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.
Manage projects hosted on GitHub Check out a project (clone)