]> rtime.felk.cvut.cz Git - hubacji1/oneflow.git/commitdiff
Add log changes info
authorJiri Hubacek <hubacji1@fel.cvut.cz>
Thu, 28 Jun 2018 05:25:22 +0000 (07:25 +0200)
committerJiri Hubacek <hubacji1@fel.cvut.cz>
Thu, 28 Jun 2018 05:25:22 +0000 (07:25 +0200)
README.md

index 74479a8138c5d6637409f8c0f54d2aca757800e4..dccf3e03c59d31e42062b30e6c576552be93ace0 100644 (file)
--- a/README.md
+++ b/README.md
@@ -30,3 +30,14 @@ The `git diff` command shows *changes* in not-yet-ready files and `git diff
 --cached` shows *changes* that are ready to be committed.
 
 # Log changes - build repository history
+You get ready the files to be commited to the history by `git add FILE`
+command. If you change your mind, you may `git reset FILE` that file.
+
+If only huks of lines in file should be prepared for commiting to the history
+`git add -p FILE` and `git reset -p FILE` can be used respectively.
+
+Before commiting to the history log check twice `git diff --cached` and `git
+diff`.
+
+When sure that staged changes should be commited to the history, use `git
+commit -m'COMMIT MSG'`.