Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
How do I show the changes which have been staged
lennit
Programming language:
Shell/Bash
2021-05-15 10:41:20
1
Q:
How do I show the changes which have been staged
Avril
Code:
Shell/Bash
2021-01-22 08:00:08
git
diff --staged
# or you can use --cached (they are synoyms, see the source)
2
Tags
change
show
how
changes
Related
How to revert uncommitted changes including files and folders?
git discard staged changes
git show staged files
git check which files are committed
how to avoid some files changes to not come in git status
git check staged changes
GIT_DISCOVERY_ACROSS_FILESYSTEM not set
unstage staged files git
git commit all changes
git show files modified since commit
git undo all changes
wsl ubuntu git status and the file are not staged
New to Communities?
Join the community