Cd to the root directory of the local project and execute git command.
git init 1
Step 2: Add all files of the project to the warehouse.
git add . 1
If you want to add a specific file, just change it. To a specific file name.
Step 3: Submit the added file to the warehouse.
Git commit -m "comment statement" 1
Step 4: Enter github to create your own resource library and create a page as shown in the following figure:
Click the Create Warehouse below to enter a page similar to the one below, and you will get/hanhailong/customratingbar1for creating the warehouse.
Replace the https link address below with your own warehouse url address, which is marked in the red box above.
Step 6: Before uploading github, pull it and execute the following command:
Git pull origin master 1
After pressing Enter, the output will be similar to the following.
The seventh and final step is to upload the code to the github remote repository.
git push -u origin master 1
After the execution, if there is no abnormality, the upload is successful after the execution, and the user name and password may be required in the middle. You just need to enter your github account and password.
Finally, attach a screenshot of the uploaded code:
Thank you!