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