Git Learning Notes

Source: Internet
Author: User

May 2, 2015 19:40:02

[email protected]:~/git/repository$ vim readme.txt[email protected]:~/git/repository$ Git Add readme.txt[ email protected]:~/git/repository$ clear[email protected]:~/git/repository$ lsreadme.txt[email  protected]:~/git/repository$ Git commit-m "wrote Readme file" [Master (Root commit) B180eca] wrote Readme file 1 file changed, 2 I Nsertions (+) Create mode 100644 readme.txt[email protected]:~/git/repository$ Git commit-m "Black Test" in branch Master no file to submit, clean workspace [email protected]:~/git/repository$ vim readme.txt [email protected]:~/git/ repository$ git status is in a change that the branch master has not yet staged for submission: (using "git add <file> ...") Update the content to be submitted) (using "Git checkout--<file> ..." Discard workspace changes) Modified: Readme.txt Modification has not been added (using "git add" and/or "Git commit-a") [Email protected]:~/git/repository$ git diff Diff--git A/readme.txt B/readme.txtindex 46d49bf. 9247DB6 100644---a/readme.txt+++ b/readme.txt@@ -1,2 +1,2 @@-git is a version control System.+git is a distributed versio N Control SystEm. Git is free software. [email protected]:~/git/repository$ git add readme.txt [email protected]:~/git/repository$ git status in branch Master to commit the change: (using "git reset HEAD <file> ..." Withdrawal staging Area) Modified: readme.txt[email protected]:~/git/repository$ Git commit-m "Change readme.txt" [Master 6534065] Chan GE Readme.txt 1 file changed, 1 insertion (+), 1 deletion (-) [email protected]:~/git/repository$ Git status in branch master  No files to submit, clean work area [email protected]:~/git/repository$

  

Git Learning Notes

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.