Pycharm + git for notebook and desktop code synchronization

Source: Internet
Author: User

Note: This article is for the author to review all later, please do not follow the method of this article to build

1, download msysygit,https://git-for-windows.github.io/Click download get download link, may because of network reasons can not download, you can copy download link to thunderbolt, download through Thunder. The default installation can

2. Log in to GitHub and create the project.

Then just fill in a name, like "Python_day", choose an open source protocol, and finally it looks like this:

Here Day1/day2 is uploaded to my right, remember the HTTPS address here.

3. Create a local git repository

Open a directory locally, then right-click on "Git Bash here"

Execution: Git clone https://github.com/dianshen/python_day.git

This synchronizes the remote project to the local repository. The Python_day directory is created in the current directory to open this directory

git config--global user.email "xxxx"

git config--global user.name "xxxx"

git add day1

git add day2

4, update and commit.

Open pycharm,file--setting:

If there is code update, update first, then commit

If both the desktop and the notebook have code changes, the desktop changes are submitted to GitHub, and the notebook goes to update, prompting for a merge of two different versions.

Commit Operation:

Pycharm + git for notebook and desktop code synchronization

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.