Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Of-course you can do.</p> <ol> <li><p>Using <code>git diff</code>command without any arguments: will compare each modified files in your file system against the files in the current checked-out branch (or) tag. </p></li> <li><p>Using <code>git diff &lt;tag(or)branch name&gt;</code>: will compare each modified files in your file system against the files in the specified branch (or) tag. </p></li> <li><p>Using <code>git diff &lt;path/to/file_name (or) path/to/folder&gt;</code>: will compare the specified file or files in the folder in your file system against the current checked-out branch (or) tag. </p></li> <li><p>Using <code>git diff &lt;tag1(or)branch1 name&gt; &lt;tag2(or)branch2 name&gt;</code>: will compare all modified files between two branches / tags.</p></li> </ol> <p>There are many options, you can pass to 'git diff' command to format your output. Here I've listed a few:</p> <ul> <li><code>git diff --name-only</code> : Show only names of changed files, not the contents. </li> <li><code>git diff --name-status</code> : Show only names and status of changed files.</li> <li><code>git diff --cached (or --staged)</code> : compares only the files which are staged/indexed.</li> </ul> <p>for more information: execute <code>git diff --help</code> in your git bash.</p> <p>FYI: <code>git diff</code> will generate output in command line. If you want to see the output in some visual tools, use <code>git difftool</code>.</p> <p>Using <strong><code>git difftool</code></strong>: you can configure the git to use diff/merge tool to compare files. Checkout this link: <a href="https://stackoverflow.com/questions/1881594/use-winmerge-inside-of-git-to-file-diff">use Winmerge inside of Git to file diff</a></p> <p>You can pass all <code>git diff</code> arguments and options to <code>git difftool</code> as well.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload