Thanks for your help guys, but in still missing something. I think I must have it wrong conceptually in my head.
But using a real example… I’m working locally on a wordpress site and I want to revamp the file single-jobs.php in a separate branch.
If I start editing that file and commit to it a new branch what do I do if I need to make an edit to the existing one?
Or do I commit changes the separate branch and the if I need the old files I switch branches and pull that down?