Get the latest tech news
How I use git
From aliases, to commits, to commit messages, to reviews, to workflows.
In that case I might do interactive rebasing on my branch and squash my commits as needed into single units of works so that they in turn are easy to understand, revert, bisect. Previously I marked those PRs as “WIP” by putting that as a prefix in the PR title, but nowadays we have the draft status in GitHub. Again: the unit of work is the merged PR and I don’t care whether the commits inside my branch reflect what happened in real time.
Or read this on Hacker News