« Minimal Reproducible »

Home Tags About GitHub

diff-staged-or-unstaged

Published at 2024-03-30
Last update over 365 days ago Licensed under CC BY-NC-SA 4.0 softwares-and-toolsgitdiff

ref: https://stackoverflow.com/questions/1587846/how-do-i-show-the-changes-which-have-been-staged

git diff # show unstaged but tracked
git diff --cached # show staged
git diff HEAD # show staged and unstaged (till last commit)

git diff --name-only --cached # show file names only

« Minimal Reproducible »

Powered by Astro