aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/git.html
diff options
context:
space:
mode:
Diffstat (limited to 'tools/git.html')
-rw-r--r--tools/git.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/git.html b/tools/git.html
index 2d64c24..68ee78f 100644
--- a/tools/git.html
+++ b/tools/git.html
@@ -294,6 +294,7 @@ the same repository (shared .git folder).</p>
<pre><code class="language-markdown"> git diff &lt;commit&gt;..&lt;commit&gt; [&lt;file&gt;] .... show changes between two arbitrary
commits. If one &lt;commit&gt; is omitted
it is if HEAD is specified.
+ git diff --name-only &lt;commit&gt;..&lt;commit&gt; . show names of files changed
git diff -U$(wc -l &lt;file&gt;) &lt;file&gt; ....... shows complete file with diffs
instead of usual diff snippets
git diff --staged ....................... show diffs of staged files