PhpStorm 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 PhpStorm 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 PhpStorm, the Login to GitHub dialog opens. If you have already registered your GitHub account in PhpStorm, 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. PhpStorm 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. Learn how to connect to GitHub with SSH here.You can clone a repository that you want to contribute to directly from PhpStorm and create a new project based on it.įrom the main menu, choose Git | Clone. Using the SSH protocol, you can connect to GitHub without supplying your username or password every time. However, due to security reasons, it is advisable that you use SSH to interact with GitHub, especially if you work for a company or you’re using a computer that isn’t yours. Git config -global credential.helper 'cache -timeout=600'īingo, you just fixed it, Git will never ask for your credentials again. You can also set a timeout for the above setting.Git config -global credential.helper cache Save the username and password for a session (cache it).Git config -global credential.helper store Git remote set-url origin Make Git store the username and password and it will never ask for them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |