How can you view the changes between the working directory and the index or staging area in Git?

  • git diff
  • git status
  • git show
  • git log
The correct option is git diff. This command shows the differences between the working directory and the index or staging area, allowing you to review changes before committing them. git status shows the status of your working directory, git show displays information about a specific commit, and git log shows the commit history.
Add your answer
Loading...

Leave a comment

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