git-uploading a local project to the GitHub library

Source: Internet
Author: User

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
  1. First you have to upload it to the GitHub library and you have to install Git.

  2. The first step

    Select the local project file you want to upload, right-click to open the Command window

  3. 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)

  4. Input command

    git Add.


    Add and. Have spaces in the middle
    Traverse all the files in the project and add them to the warehouse

  5. Input command

    git commit-m "message"


    Quotation marks are the submission of comments, content to see their own needs

  6. Input command

    Git remote add origin URL


    URLs are the addresses that will be uploaded to your own github library

  7. 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

  8. 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

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.