Start a project correctly
A professional workflow begins by creating the repository, configuring ignore rules, making an initial commit and publishing the default branch to the remote. From this point, every change can follow the same predictable lifecycle.
Feature lifecycle
Create a short-lived feature branch, make small logical commits, review staged diffs, run tests, synchronize with the target branch and push the branch. Open a pull request, address review feedback with additional commits or a controlled cleanup, then integrate according to team policy.
After merging
Delete the feature branch when appropriate, update your local default branch and start the next piece of work from a current base. Tag releases when the project has a defined release process.