GitHub Code upload command submission

Source: Internet
Author: User

The use of Git GUI is relatively simple, can easily get the local git library code to submit to the remote GitHub server, so want to put Git bash this thing's operation process quickly, mainly to make a note, later forget to see how to operate.

First, open https://github.com and log in, then click on the upper right corner + sign

Then create your warehouse name, such as MyProjects

Then choose public and private, default is public, click the button below to create a success.

Don't worry, remember the current url,https://github.com/yourgitname/myprojects.

Then go to your local git directory, like D:\Demo.

Right click on "Git Bash here" in this directory

$ git init

$ git Add. (local add upload,. Is all files, specific file name as long as replace.), such as git add somefile

$ git commit-u "comment content you want to add"

$ git push (wait and enter the GIT username and password to wait for the upload to complete)

Then you can go to your github to view your uploaded code!

GitHub Code upload command submission

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.