Use of Git+giihub+webstorm

Source: Internet
Author: User
Tags hosting

What's the relationship between Git and GitHub?

Git: Version control tools/Systems.

GitHub: It's a git-controlled project hosting platform. (Again, code Cloud and Gogs are also git-based project hosting platforms.) )

。。。 This article is about how to work with Git and GitHub and Webstrom to complete a project hosting ...

(i) Preparatory work

1.Git.exe Download installation

Website address : https://git-scm.com/

Installation Graphics Tutorial : https://jingyan.baidu.com/article/7f766dafba84f04101e1d0b0.html

(attached: Git Chinese manual : https://git-scm.com/book/zh/v2/ This manual role: How to control all operations of the project with pure command

I have browsed through the usual manual operation is enough for us to use without careful study.

2.GitHub account Registration Login

Go to GitHub website https://github.com/, upper right corner signup register

Create account, email verification is successful, then login to enter the account.

3.webstorm Download Installation

(ii) Git version control connected to GitHub (media webstorm)

1.WebStorm connected to GitHub

Click the Webstorm Settings button and select Versioning (version control)--- ②③④⑤. -click "OK" in Settings

2.WebStorm connecting to git

3.Git generate SSH Key, GitHub fills in the SSH key

SSH key: for the local repository to communicate with the remote repository

1) git generates SSH keys

Program--Open "Git Bash" Command Window--enter command ssh-keygen-t rsa-c "[email protected]"

A similar hint will appear:
Press the "Enter" key directly, then enter the password . (You can fill in your GitHub account registration email and password separately)

The above operation generated the SSH key, the key file is id_rsa.pub.

2)GitHub fills in the SSH key

Locate the id_rsa.pub file in the. SSH directory that was generated in the first step, right-click with Notepad, copy the Notepad SSH content

Go to GitHub Setup Key page: Https://github.com/settings/keys

Follow the steps 1--2--3, 3 for the SSH key that you just copied.

(iii) The official use of GitHub in Webstorm

1.clone on-line GitHub address to Local

Webstorm menu bar vcs-from version control Checkout-github

Outside the chain: GitHub How to create a new project warehouse and how to obtain a warehouse address?

2. Post the project file locally to the online github repository

1) Recognize color markings

Red : Indicates not added to Git version control, right click to select (git-> +add) add

Green : not uploaded

Blue : Indicates that this file has been modified and not uploaded

2) git four steps:1. Save local changes, do stash changes operation ( position in menu Vcs-git —。。。 )2. Connect the code on the remote PC line PullDown 3. Then put out the code that you saved in step 1,do unstash changes operation4. Put the CodePushTo the remote warehouse "above the way of the revision directly similar to the source tree, save local, pull-off line, and release local-to-line submission" On the pull line, releasing the local process in the resource merge add refresh one thing toNote: For newly added files, commit to local and then modify and then stash will have storage records. Before you can do the above git four steps.

The above git four step is that we operate the specific file to the online process.

Use of Git+giihub+webstorm

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.