Work on a branch so main always stays working. When the feature is done, open a pull request so it can be reviewed and merged.
git switch -c new-header # create and switch to a branch # ...edit, add, commit... git push -u origin new-header gh pr create --fill # open a pull request git switch main && git pull # get the merged result