git diff: what is the difference between --cached and --staged
To compare the staged with the last commit:
git diff --cached
git diff --staged
Both commands generate the same results, right?
To compare the staged with the last commit:
git diff --cached
git diff --staged
Both commands generate the same results, right?
We use cookies to ensure the best experience on our website. This includes analytics, personalization, and marketing purposes. Some cookies are essential for the website to function properly.
By clicking "Accept", you consent to our use of cookies. You can read more about how we use cookies and how you can change your preferences in our Privacy Policy.