How to host your project to GitHub

Source: Internet
Author: User

I. Entry into Gitbash

The Red circle section is the location of the clone's repository, which can be accessed from the upper left corner of Administrator or C:\Users\Administrator.PC-201505250855.

two. Enter the warehouse

go to GitHub and click your profile to enter the address below. HTTPS://GITHUB.COM/HXSYLZPF

three. Cloning a warehouse

1. Click into the repository you want to upload, then look

2. Then enter

git clone https://github.com/hxsylzpf/hadoop.git

Then go to C:\Users\Administrator.PC-201505250855, and you'll find out more about the Hadoop directory.

Four. Add version Changes

1. First put the file you want to upload, such as pso_k_means.m in the Hadoop root directory, then go to the directory "CD Hadoop", and then "git Add."

CD hadoopgit Add.//There is a space

Then submit the information to the local version control library

Git  commit-m "Changes log"  //quotation marks are information about the people

Note: There are times when you're reminded of the "Tell me who is" and submit it by his message, which seems to be

git config--global user.email "[email protected]" git config--global user.name "HXSYLZPF"//both have to run

Last input

Git push-u Origin Master  

Submit your local repository to your GitHub account, you will be asked to enter your GitHub account number and password.

But always prompt

ERROR:SRC Refspec Master does not match any.error:failed to push some refs to ' 

I tried. Add a Readme first, or not.

How to host your project 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.