718 B
718 B
title, tags, expertise, author, cover, firstSeen, lastUpdated
| title | tags | expertise | author | cover | firstSeen | lastUpdated |
|---|---|---|---|---|---|---|
| View differences in changes | commit,branch | intermediate | chalarangelo | blog_images/plant-candle.jpg | 2021-04-08T16:30:44+03:00 | 2021-04-13T21:10:59+03:00 |
Displays differences between staged or unstaged changes and the last commit.
- Use
git diffto view differences between your unstaged changes and the last commit. - You can use the
--stagedoption to view differences between your staged changes and the last commit instead.
git diff [--staged]
git diff
# Displays the differences between unstaged changes and the last commit
git diff --staged
# Displays the differences between staged changes and the last commit