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