in Technology by
What is the difference between the ‘git diff ’and ‘git status’?

1 Answer

0 votes
by

git diff ’ depicts the changes between commits, commit and working tree, etc. whereas ‘git status’ shows you the difference between the working directory and the index, it is helpful in understanding a git more comprehensively. ‘git diff’ is similar to ‘git status’, the only difference is that it shows the differences between various commits and also between the working directory and index. 

Related questions

0 votes
    What is git diff command? How is it different from git status?...
asked Nov 4, 2020 in Technology by JackTerrance
0 votes
    I can do following: git diff tag1 tag2 --stat But this gives me list of files.. How can I know ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    When I use svn diff or git diff it shows lines like: @@ -1,5 +1,9 @@ What do they mean ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    When I use svn diff or git diff it shows lines like: @@ -1,5 +1,9 @@ What do they mean ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 7, 2022 in Education by JackTerrance
0 votes
    When I use svn diff or git diff it shows lines like: @@ -1,5 +1,9 @@ What do they mean ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    I am trying to create a "feature branch" from golang. The following code is not working: reader : ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    What is the difference between 'git pull' and 'git fetch'?...
asked Jan 7, 2021 in Technology by JackTerrance
0 votes
    What is the difference between git checkout [branch name] and git checkout -b [branch name]?...
asked Nov 4, 2020 in Technology by JackTerrance
0 votes
    What is the difference between ‘git remote’ and ‘git clone’?...
asked Nov 2, 2020 in Technology by JackTerrance
0 votes
    What is the difference between git pull and git fetch?...
asked Nov 2, 2020 in Technology by JackTerrance
0 votes
    What is the difference between GIT and SVN?...
asked Nov 2, 2020 in Technology by JackTerrance
0 votes
    What is the difference between Git Merge and Git Rebase?...
asked Oct 4, 2020 in Technology by Editorial Staff
0 votes
    Explain the difference between git fetch and git pull....
asked Oct 4, 2020 in Technology by Editorial Staff
0 votes
    _________________ shows relationship between diff members of a family. a. Family tree b. Generations c. Uncle d. Aunt...
asked May 14, 2021 in General by JackTerrance
0 votes
    I've got two versions of a project with a JUnit test. Looking at the diff of the files there's ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
...