]> rtime.felk.cvut.cz Git - hubacji1/oneflow.git/blobdiff - README.md
Remove not working link
[hubacji1/oneflow.git] / README.md
index da1400b1c055928579b2e82c43a90b2c1cf78bb0..e1ae342915c828fe9a766e246d635c256b499e95 100644 (file)
--- a/README.md
+++ b/README.md
@@ -50,4 +50,34 @@ mind [1][]:
 - Wrap the body at 72 characters.
 - Use the body to explain what and why vs. how.
 
+# Cheat sheet
+Use `git COMMAND --help` for showing the help!
+
+## Init
+- `git clone URL`
+- `git init`
+- `git config user.name "Your Name"`
+- `git config user.email you@example.com`
+- `git config --global user.name "Your Name"`
+- `git config --global user.email you@example.com`
+
+## Explore
+- `git log`
+- `git log --graph`
+- `git log --oneline`
+- `git log --decorate`
+- `git show COMMIT`
+
+## Changes
+- `git diff`
+- `git diff --cached`
+
+## Commit
+- `git add FILE`
+- `git add -p FILE`
+- `git reset FILE`
+- `git reset -p FILE`
+- `git commit -m'COMMIT MSG'`
+- `git commit`
+
 [1]: https://chris.beams.io/posts/git-commit/