Quickly upload items to GitHub

Source: Internet
Author: User

Before uploading

1 existing GitHub Account

2 have a project source code file

3 Generate an SSH key, how to add an SSH key, refer to: https://help.github.com/articles/generating-ssh-keys/

4 Installing Git for Windows (I'm working under Windows)

Start uploading

1 Put a warehouse repository on Gthub and get an SSH address git@github.com:ddfdsf/dsafds.git

2 Go to the source folder and right click on Git bash here (provided that you have successfully installed Git for Windows)

3 Open a Bash window with the current path already in the path you just clicked (pwd for viewing)

4 Type the following name

GIT init//create a. Git folder

git remote add origin [email protected]:d Dfdsf/dsafds.git

git Add.

Git commit//appear a VI, add some commit information, or directly with the parameter-M "Commit mesage!"

Git push-u Origin Master

Upload successful

Quickly upload items to GitHub

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.