What are the three most popular version of git diff command?

Three most popular git diff commands are as follows:

<li><strong>git diff</strong>: It displays the differences between working directory and the index.</li>


<li><strong>git diff –cached</strong>: It displays the differences between the index and the most recent commit.</li>


<li><strong>git diff HEAD</strong>: It displays the differences between working directory and the most recent commit</li>
Read the full book at www.amazon.com
Posted in GIT, GIT Interview Questions

Leave a Reply

Your email address will not be published. Required fields are marked *

*