From 0cf0869c24bfb00dfd7884f0e40565c2859df3f3 Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 20 Mar 2022 21:16:42 +0000 Subject: deploy: 9b3a0b3c1d7afa35c5eb56a69600af841e0b78b5 --- tools/git.html | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'tools/git.html') diff --git a/tools/git.html b/tools/git.html index ce6c876..d4bb610 100644 --- a/tools/git.html +++ b/tools/git.html @@ -153,7 +153,34 @@

git(1)

-

staging

+

Working areas

+
+-------------------+ --- stash -----> +-------+
+| working directory |                  | stash |  // Shelving area.
++-------------------+ <-- stash pop -- +-------+
+      |       ^
+     add      |
+      |     reset
+      v       |
++-------------------+
+|   staging area    |
++-------------------+
+      |
+    commit
+      |
+      v
++-------------------+
+| local repository  |
++-------------------+
+      |       ^
+     push     |
+      |     fetch /
+      |      pull
+      v       |
++-------------------+
+| remote repository |
++-------------------+
+
+

Staging

  git add -p [<file>] ............ partial staging (interactive)
 

Remote

@@ -209,6 +236,8 @@ git show --stat <commit> ................ show files changed by <commit> git show <commit> [<file>] .............. show diffs for <commit> + + git git show <commit>:<file> ............ show <file> at <commit>

Patching

  git format-patch <opt> <since>/<revision range>
-- 
cgit v1.2.3