First, we need a GitHub account to install GitHub Desktop locally,
The first step is to install the local GitHub Desktop and log in. After the login is successful, the following is displayed. Note: Chat and react-native Here are built for themselves, and if users use GitHub Desktop for the first time, they do not have these two libraries.
Step two, go to GitHub website, https://github.com/login
Step three, choose repositories. To create a new, select the Green New button with no code library as an example
Create your code base, fill in the information, and press the creat repository below the green button
Click on the following page, note the Green Label area, click it
After clicking, a prompt may appear and click Launch App.
After that, your GitHub desktop will become the following hint in where: Select your library's local location, because I chose the desktop, so I will generate a folder on the desktop. The meaning of this step is understood to be to clone your library locally.
When you click Clone, you are building
and create folders on the desktop.
The fourth step is to put the project files you have written locally into your library, in this case, the folder game generated on the desktop. I put a scratch in here. html (the file name is best in English, this example is for ease of understanding, in Chinese). After you put the item in, your GitHub desktop will automatically be detected and displayed as follows:
Summary write a name, description write the description of the item, finally click on the Commit to Master button, after the reaction, click the Publish button.
Publish to submit, after the successful submission, will become, publish into sync (sync), click Sync, will sync to your GitHub page.
After you complete the above steps.
Fifth step, refresh your github webpage and you will find that your project has been uploaded successfully! Scratch the music. html appears in your game library.
A single upload project is complete. This article is for personal understanding, if there are errors, please notify me in the letter, thank you.
GitHub Desktop Upload Project