Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is a great tip, thanks! I never thought of using git diff to test things out, and I definitely didn't know you could diff against a stash.


That was news to me as well. I've always done the following:

    $ diff -u <(git stash show -p) <(git diff)


never again.. by the way, `git diff --no-index` also works like a generic diff utility on any two files.

(Wow, that --no-index behavior seems to be default outside repositories now. I learned something, just git diff works now.)




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: