For the first time use please refer to Baidu, Google, blog Park. Here is an introductory guide, concise and wonderful: http://www.kechuandai.net/git%E4%BD%BF%E7%94%A8%E5%B0%8F%E8%AE%B0/
I keep a record of the problems I have encountered, memo.
Modify the file and submit it to GitHub.
[Email protected] ~/git/helww/labs]$ vim readme[[email protected]~/git/helww/labs]$ git diff diff--git A/readme b/Readmeindex 39d8172. 464c83f100644---A/README+ + + breadme@@-3,3+3,4@@ this isMy GitHub website. welcome! Here isIntroduction:1, labs isMy Lab,whereSome Joy code isput2, Thismaybe IsNot project, but the Who knows+3, and some useful testcase[[email protected]~/git/helww/labs]$ git commit readme-m"Small Change"[Master b8bc06a] Small change1File changed,1Insertion (+) [[email protected]~/git/helww/labs]$ git push origin master Readmeenter passphrase forKey'/home/luwenwei/.ssh/id_rsa': error:src refspec README does not match any.error: cannot push some references to'[Email Protected]:helww/labs'[[Email protected]~/git/helww/labs]$ git push origin master Enter passphrase forKey'/home/luwenwei/.ssh/id_rsa': Counting objects:8, done. Delta CompressionusingUp to2threads.compressing objects: -% (6/6), done. Writing objects: -% (6/6),695bytes, done. Total6(Delta1), reused0(Delta0) to [email PROTECTED]:HELWW/Labs f005d79. B8BC06A MasterMaster
Explain:
Git push Origin master README
The meaning of this sentence is to commit the local commit to the remote repository, the Readme is the file to be submitted, but this command fails to execute.
The correct command is: Git push Origin master (commit a local commit to the remote repository)
git usage Instructions