in Technology by (1.9m points)

What is git diff command? How is it different from git status?

1 Answer

0 votes
by (1.9m points)
Git diff is a multi-use command that can be executed to show the differences between two arbitrary commits, changes between the working tree & a commit, changes between working tree & an index, changes between two files, changes between index & a tree, etc.

The git status command is used to inspect a repository. It shows the state of the working directory and staging area. It will list down the files that have been staged, which haven’t been staged and the files that are untracked.

Related questions

0 votes
asked Feb 11 in Education by JackTerrance (1.9m points)
0 votes
asked Jul 20 in Education by JackTerrance (1.9m points)
...