git commands - Modify Management
git management is not a file, but modifying
eg: readme.txt file to modify a line
sentence added to the end git has to tracked
and then add, and view the status of
cat + file name indicates the file's contents View
Final submission success
after success view status
$ git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: readme.txt
no changes added to commit (use "git add" and/or "git commit -a")
readme.txt command to see the difference between the work area and the latest version of the repository inside - with git diff HEAD:
to sum up
Instructions that can be taken twice modified after
that how to submit the second revision of it? You can then continue git add git commit, you can do not worry submitted to the first modification, the first git add second revision, then git commit, equivalent to submit a revised twice after the merger:
First Revision -> git add -> The Second Amendment -> git add -> git commit