Introduction:
Github manages its own project process steps: modify → conmmit → publish → view
The GitHub desktop version is very convenient for individual users. You don’t need to memorize so many commands, you only need to understand some concepts, and then click on the interface.
Official website download address: https://desktop.github.com/
Create library:
- Click File in the upper corner again, and then there is a New repository
- Give the warehouse a name and find an address for it locally.
- Check the radio button on the third line, which is equivalent to an initialization, and a readme file will be created.
Add and modify files:
- Enter the directory of the warehouse and create a new txt file. At this time, it will be displayed on github
- Or modify TXT directly with a text editor, GitHub can also detect
- Or copy the program group you originally wrote in, and GitHub can also detect it
Submit version commit:
- If the code is modified, the project has entered a new "version" at this moment, so if you are sure of the modification you just made, you should click commit to submit the current version. Properly explain the modification and click commit in the lower left corner
Sync to cloud publish:
The above modifications and submitted versions are all carried out locally, and there is no change on the github website in the cloud. So if you are sure of your local modifications, you should push publish to the cloud.
- If the current project already exists in the cloud warehouse, click publish to synchronize your local changes to the cloud and refresh the cloud data.
- If it is your first time to publish, the following interface will pop up after clicking, asking if you want to create the same warehouse in the cloud as the local one, select Yes and tick Cancel.