aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/git.html
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2024-04-05 23:16:19 +0000
committerjohannst <johannst@users.noreply.github.com>2024-04-05 23:16:19 +0000
commit63d71256f83e5da6479d90d1bbdaf17ad6d31f02 (patch)
tree764f346960e00afaf945673a365d0063f64f29ff /tools/git.html
parent1d01762f8b174573dd58e6da1630bd92bc193512 (diff)
downloadnotes-63d71256f83e5da6479d90d1bbdaf17ad6d31f02.tar.gz
notes-63d71256f83e5da6479d90d1bbdaf17ad6d31f02.zip
deploy: c660b71b9689af89bc09671e6a6de7f9943e2709
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