0

When I use stash, I run git stash -u so that all files are stashed.

When I want to look at the stash contents using git stash show -p, it will also include in the diff files which are in my .gitignore list. This is understandable, since -p stands for "patch", but is there a way to ask git to not show these gitignored files in the stash show -p output?

1 Answer 1

0

Ok, it seems git diff stash@{0}^..stash@{0} is what I want. Or change to any other stash ID of course.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.