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