Summary of Pycharm and GitHub configuration usage

Source: Internet
Author: User
Tags ssh

In the use of tools to manage GitHub before, has always been a command to manage, sometimes it seems very cumbersome and inefficient, so for the summary of the Pycharm and GitHub between the management of small dongdong.
This blog does not detail Git's use of techniques or principles, as it is for children's shoes that have learned that Git wants to be more efficient or have a lazy cancer attack, so children without git experience may need to review the knowledge of Git and GitHub first. I. Preparatory work ⅰ.git download and installation

To connect to GitHub, first git is essential, the basic use of Git installation is very simple, this is not about the tutorial used by git, so just mention it and skip it. ⅱ.github settings Add ssh Key

This step is connected github the most basic step, Git is a distributed Code management tool, remote code management is based on SSH, so you have to match the SSH key first.

1. Create an SSH Key

Open the terminal, which may be called Git bash under Windows, enter:

ssh-keygen-t rsa-c "email"

For example, the above email can write their own mailbox and so on.
Cases:

There will be some prompts to set a password or something, you can set it without setting, and then you will be prompted to generate two files. Follow the prompts to find the appropriate file, as shown below.

Use Notepad to open one of the id_ras.pub files, you can see a long list of content, this is to be copied to the GitHub site to go to the Dongdong.

2.GitHub add ssh Key
Open your GitHub, enter the settings, select the SSH and GPG keys option, as shown below. As you can see, I have two ssh added here, of course I can add more than one.

Click on the New SSH key button to copy the contents of the. pub file that you opened in Notepad to the key box, title you name yourself. For example, the following example (sensitive smear off):

Click Add on the line.

3. Verify Success
Enter in Git bash

ssh-t git@github.com

two. Pycharm and GitHub connection

When you have finished your preparation, you can start connecting Pycharm and GitHub. 1. Set GitHub account and password:

The following figure.

You can click the Test button to see if the connection is successful.
2. Set git

It's OK to fill in your Git.exe path where Git path is.

After these two steps, Pycharm can be connected with GitHub. The next section is about some of the operations that are often used in combat. three. Create GitHub warehouse

The following figure.

Then a box pops up, familiar with GitHub's children's shoes should know that this box is used to fill in the basic warehouse information. Just write one here and click Share:

A window will pop up to allow you to choose which file to add. Commit here to write the necessary commit, then click OK on the line.

Go to your GitHub homepage and find that it has been uploaded.

So it is easy to create and share a github warehouse under Pycharm.

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.