diff options
Diffstat (limited to 'tools/git.html')
-rw-r--r-- | tools/git.html | 1 |
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 <commit>..<commit> [<file>] .... show changes between two arbitrary commits. If one <commit> is omitted it is if HEAD is specified. + git diff --name-only <commit>..<commit> . show names of files changed git diff -U$(wc -l <file>) <file> ....... shows complete file with diffs instead of usual diff snippets git diff --staged ....................... show diffs of staged files |