Uploading the project to GitHub at window

Source: Internet
Author: User

As a developer, blogging, uploading projects to GitHub seems like a no-no skill, and a lot of experienced old drivers would advise you. When the baby first had to upload the project to GitHub, it was a bit of a blind hand, what the hell is it necessary to pass something so hard?

Git has a GUI, but a search on the internet, a lot of, here baby introduced a relatively easy to use is also the number of users more GUI, called the source Tree, we go online download quickly, today baby to say is to use command line upload code, very tall wood there? It's time to put a wave of B.

Create a warehouse based on the operation first, what does it do? It can be simple and rough to understand as a project a warehouse on the line.

After the creation of the success to see, the address of this map first remember, a will be used, this is the address of this warehouse, our project to be sent here.

Then go to download a git, you can search for git download online, there will be a lot of tutorials, where the baby posted the official: https://git-scm.com/downloads/there is an online look for the installation tutorial: http://jingyan.baidu.com/ Article/7f766dafba84f04101e1d0b0.html

Then open the GIT installation path, open Git-bash.exe, and then you will find a command line opened.

That's it, we're just going to write the command line here.

Baby's project in J:\MVPDemo\MVPDemo, our first step is to enter this directory, the CD is used to enter a directory, the white Word is the baby to play (the dollar sign is automatically generated), and now into the directory we want to upload the path.

The second step is to enter Git init as shown, which means to generate local git management in the directory of the current project (you will find one more. Git folder in the current directory)

The third step is to enter Git add, which is the meaning of adding all the files on the project to the repository, and if you want to add a specific file, simply change the.

To this specific file name.

The fourth step is to enter Git commit-m "first commit", which indicates your comments on this submission, the contents of the double quotation marks can be changed according to the individual needs. Step Fifth Enter Git remote add origin https://own warehouse URL address (mentioned above) link the local repository to GitHub, where the baby enters git remote add Origin https://github.com/ Silasgao/mvpdemo.git The last step, enter Git push-u Origin master, which means uploading the code to the GitHub repository. After execution, if there is no exception, will wait a few seconds, and then jump out of a window that lets you enter username and password, you just enter GitHub's login account number and password on the line.

Account password is correct, you will see a thing below, progress will jump, this is the progress of the upload process, the process may be a bit slow, sometimes have to wait a few 10 minutes, at this time to see GitHub above, or nothing, so big Brother don't worry, do something else, later to see.

After the upload is successful, this is what it looks like.

Finally, attach a common git error written by someone else.

I hope this article can help you, OH

Uploading the project to GitHub at window

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.