How to see all unstaged changes?

git diff

To see all unstaged changes use git diff. The command shows all your unstaged changes for the files tracked by git.

Layer 1
Terminal Example
git status
On branch main
Changes not staged for commit:
  (use "git add/rm ..." to update what will be committed)
  (use "git restore ..." to discard changes in working directory)
    deleted:    logo.png

no changes added to commit (use "git add" and/or "git commit -a")

git diff
diff --git a/ b/
index bffc861..4dc741c 100644
--- a/
+++ b/
@@ -1,2 +1 @@
-Hello World!
+This is a playground repository for
diff --git a/logo.png b/logo.png
deleted file mode 100644
index a917f69..0000000
Binary files a/logo.png and /dev/null differ

See git diff to learn more about it.

Last modified on November 30, 2021.

You might also like