Table of contents
Git uploads project files to Github using HTTPS
1. Log inGithub and create a warehouse
(1) First click the plus sign and select new repository.
(2) Next, give the warehouse a name, configure the permission information, and click Create repository to complete the creation of the warehouse.
(3) Finally, the following interface is obtained
2. Return to the local project file to upload the project
(1) Right-click the file of the project to be uploaded to reopenright-click Git Bash Here and use the command line to upload the project.
(2) Return to the warehouse created on Github and copy the HTTPS address.
(4) Alias the HTTPS address, the syntax is git remote add alias remote address , use git remote -v View all current remote address aliases.
(5) Make sure that the file to be uploaded has been added to the local library (git commit), and the pointer points to the branch to be uploaded, and then use git push alias branch Upload the Github remote repository.
Enter the command: git push git_demo2 master
The following interface will pop up:
You can choose the browser or enter the password, and finally you will get the following Results