3 ms·
I use it a lot. Sometimes, you want to have a temporary snapshot, but not a commit. So I write some code, it works, but I'm thinking of trying some things out
by didibus 8y ago
I use it a lot.
Sometimes, you want to have a temporary snapshot, but not a commit.
So I write some code, it works, but I'm thinking of trying some things out. I stage the working code and make more diffs. Now I can have my editor show the diffs between my stage and my new changes. And I can easily rollback individual files or re-stage some more files.
Until I am satisfied. And now decide to make a commit.
I could just make them all commits, and then do a interactive rebase as well. And I do that too. But sometimes the staging area is just simpler and quicker. With git status I can see it at a glance. Etc.