« Minimal Replication »

Home Tags About

show-stages

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

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

git diff # show unstaged
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 Replication »

Powered by Astro