Use Git to submit code to the GitHub repository under Pycharm in the UBUNTU16 system

Source: Internet
Author: User

1 Install git in the system and enter the following command in terminal

sudo apt-get  updatesudo apt-get install git

2 Configure Git, enter the following command in terminal

git config--global"Your Name"-global"[email Protected]"

Use the following command to see the configuration you just

git config--list

3 Configure the Pycharm, click

File--setting--version Control--git first to let Pycharm detect a locally installed GIT application

File--setting--version Control--github Next you need to enter your username and password in this dialog box, click Test to see if the tests were successful.

4 Create a GitHub repository, assuming that you already have a project code locally

Click Vcs--import to Version control--share Project on Github

The popup box will then let you enter a warehouse name (not Chinese)

Then click Share

Then it pops up so that you choose which files need to be synced, select them, and in the following commit message you can enter your own information, then click OK, your code is submitted to the online. Can see

5 Modified file Submission

Right-click on the modified file or directory: Git--add, first put the file into the staging area.

You can also submit files directly to the warehouse by Git-commit file ..., the following procedure is the same.

Then click on the commit file above add

Once you have completed the commit message, click on the Commit and Push below to submit it directly to the online

Use Git to submit code to the GitHub repository under Pycharm in the UBUNTU16 system

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.