GitHub simply uses the code above

Source: Internet
Author: User
Tags git shell

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.