Uploading native code using GitHub

Source: Internet
Author: User

I've been learning Python recently, but I don't know how to synchronize with my home computer every time I finish writing the code. So I started studying GitHub.

, the method is simple

1: Register a git account: https://github.com

2: Install git software locally

Build a git repository
CD local project root directory, execute the git command:git init

Add all the files of the project to the warehouse:git add .(注意是add(空格).)

Commit the Add file to the repository:git commit -m "注释语句"

Create your own repository on GitHub

Link a local warehouse to a remote repository: Git remote add Origin Https://github.com/Jescs/learn_django

Right-click on the Local project folder and select Push (note that the first upload file must be push)

After completion can see that my code has been uploaded successfully

We can also upload the changed code directly in the Pycharm editor.

Pycharm menu bar, select Vcs-commit changes

Select Commit and push

Select push

Upload success!

Uploading native code using GitHub

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.