Here's an example of what I do with git on the command line during the course of developing a feature. At the start I am on the main
branch with no local modifications
First, create a named branch for the feature
git checkout -b MyFeature
Then, I begin to write the feature. As I'm going, I'll make commits to save state in case I want to go back.