The original is not easy, reproduced the source!a variety of error, all kinds of failed stimulation of the scars, but still do not concede the heart, finally can successfully upload local projects to the GitHub library, to share the various pits I met
- First you have to upload it to the GitHub library and you have to install Git.
- The first step
Select the local project file you want to upload, right-click to open the Command window
- Input command
Git init
A. Git hidden file is found in the file directory after initialization is complete
(If the folder in the project folder that you want to upload has a. git hidden file will only upload the file name, not the files in the folder, so make sure that all subfolders under the folder do not have. git hidden files before uploading)
- Input command
git Add.
Add and. Have spaces in the middle
Traverse all the files in the project and add them to the warehouse
- Input command
git commit-m "message"
Quotation marks are the submission of comments, content to see their own needs
- Input command
Git remote add origin URL
URLs are the addresses that will be uploaded to your own github library
- Input command
Git push-u Origin Master
If this step does not appear the problem this straight to the 8th step
The problem with this is that the project file you're uploading doesn't have the files that are already on GitHub (such as: README. MD), you need to add one more step file association
Git pull--rebase Origin master
Merging your code
- Input command
Git push-u Origin Master
Here I have linked the account information, some people may have to enter GitHub's account number and password
When you enter an accurate account number and password, this step appears a ERROR:HTTPR what a ghost error that is GitHub disabled TLS v1.0 and v1.1, you must update the Windows Git Credential Manager, only the line
Download Gcmw-1.14.0.exe on the link to resolve the issue
After downloading the installation, and then re-upload the previous steps to ensure that the duly completed
git-uploading a local project to the GitHub library