Uploading code to GitHub using Webstorm

Source: Internet
Author: User
Tags ssh

Before the use of Webstorm upload code to GitHub, after a few months unexpectedly found that they forget, good memory than bad writing Ah, today again use a bit, or remember the better.

When uploading code with webstorm, first download git, url a search can search, and then start to configure Webstorm, open Webstorm, in file-settings directly search GitHub, and then enter their own GitHub account password,

Click Test, then you'll be out of connection successful's prompt box, stating that you can connect to your GitHub account.

After successful connection also need to connect to download git, or directly in settings to find git, git installation path input, click Text, after success will also come out a connection successful prompt box, Generally as long as the see successful is no problem. As long as it is not a hint of what fail Ah, the error will continue to step down.

Then you need to get the local ssh, copied to the GitHub account in SSH, the role of SSH is to let the local repository and the remote repository communication, that is, you modify the good code locally, you need to synchronize to the server, you need this SSH key to communicate. First get the local git ssh, open git bash, enter ssh-keygen-t rsa-c "Your mailbox", I entered the time found no way to copy can only one of the knock up, remember that after the input must press three times enter, in order to appear c:\users (user) \ XXX (username). ssh file, open the file that found Id_rsa.pub, you can open it in Notepad

Like this:

Then copy the contents, open your GitHub account, find Settings-ssh and Gpgkey, open and click on the upper right corner of the new SSH key, paste the copied ssh.

When you're ready, you can upload the code and open the Webstorm, as shown


This page will pop up when clicked.

Choose the code you want to upload to a folder in GitHub, write your own github address, choose the path of the upload code in the local file, note that if you want to upload files in the directory, there is already a directory of the same name, such as F:\task, This can not be copied to GitHub, if there is a conflict, the path of the folder will be changed directly.

Click the code or file you want to upload,

Add will find that the original red file name changed to Blue ((⊙o⊙) or green no way blue green no points ah ah),

Click Commit changes in VCs to get out of this page


Follow the prompts to click on commit and push, go to GitHub homepage to view, the code is uploaded OK ~ ~ ~

Wen/plainnany (author of Jane's book)
Original link: http://www.jianshu.com/p/752613f4b1c9

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.