git usage Instructions

Source: Internet
Author: User

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

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.