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