What is the difference between the ‘git diff ’and ‘git status’?
Answer / Zainul Abdin
The 'git diff' command shows the differences between two commits, a commit and the working directory, or between two branches. The 'git status' command shows the changes in the working directory that haven't been added to the index yet.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you configure a git repository to run code sanity checking tools right before making commits, and preventing them if the test fails?
What commands will you use to bring a new feature to the main branch?
How can you create a repository in Git?
What is a “conflict” in git and how is it resolved?
What is the use of ‘git log’?
Why git and not svn?
What is git fork?
What are the advantages of using GIT?
What is Subgit? Why to use Subgit?
What is a commit message?
Name a few git commands and explain their usage.
How to revert previous commit in git?