I like to save my progress while working on large commits. But when I commit, my project naturally loses all of its highlighting of changes (lines and files) in IntelliJ. I am not very used to git so this may be an easy or hard question, but I want to commit my changes, but keep the highlighting of changes since my last big commit, so I think I would need to choose which commit to start highlighting from somehow.
Is there a way to do this, and can I be provided specific steps to do it?
I want to do this with as little damage to my git history as possible. When I am doing this I am doing it as a single developer. I am not very used to git, so any potential problems with any solutions would be good to know as well.
git diff your-last-big-commitwhat you are looking for?while working on large commits- No, no, no! SMALL COMMITS. You should always work with small commits. And I get the sense that you do not rewrite the history often. You should. All the time! (before things are pushed remotely). If you are not constantly rewriting history you are using git wrong. Every day you're interacting with git you should at least rewrite history a double digit number of timer. Embrace rewriting history. And making small commits. You should never, ever create large commits (unless absolutely required by say an api change that breaks everything or something like that).