DEV Community

Felipe Finhane de Paula
Felipe Finhane de Paula

Posted on

1

Git diff staged files

Show changes that have been staged with the flag:

$ git diff --staged

If your git < 1.6 use this flag:

$ git diff --cached

  • --staged is a synonym for --cached

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post