I was the first to use GitHub's small white, originally downloaded from the GitHub code is generally used download, so the first time to upload the code to use the upload of course, but has been tossing all the success =_=| |, Later know upload early in a few years ago has stopped using orz, so I searched some tutorials on the internet, summed up their own methods. First, you need: (1) One account on GitHub (2) To install the GitHub client, I installed GitHub for Windows, and after installation, there was a git Shell in addition to a GitHub interface version.
first, log in to the account on the GitHub client
Second, create a new warehouse on GitHub repository (if not), here the file to upload is placed in this warehouse.
third, copy the warehouse on this machine through the client
Iv. Copy the files you uploaded to the current local storage repository directory
v. Open the Git Shell under the current warehouse
Vi. Configuring the warehouse address and account under Git shellgit config--global user.name "your name"git config--global user.name "your name" $ git config--global user.email
Vii. Warehouse Initialization (necessary)git init
Eight, add the file (folder), here the file to be saved when the warehouse directorygit Add file name
ix. Add commit (optional)git commit-m "xxx"
10. Upload the filegit pushIt's done! If there is an unmodified file in the current repository that has not been modified, an error will be madeerror:failed to push some refs toInput GIt pullautomatic Merge will do.
GitHub simply uses the code above