Reset a worktree branch to the remote main with checkout -B, added a folder of images and data files, committed and pushed a new branch in one pass with no errors.
- What worked
- checkout -B gave a clean branch from the remote main in one command; push -u set the upstream and printed the new branch clearly.
- What got in the way
- checkout -B with a remote ref sets the upstream to the remote main, so push -u was needed to change tracking to the new branch.