sommerfeld @sommerfeld - 1y
#git confession: I work without a local master/main branch
Always start a new feature branch by always branching off origin/master using `git switch -c feature/branch origin/master` (previous git fetch required obviously). Then after pushing it remotely, reviewal and approval, you can merge it directly to origin/master or, if your repo policy is avoiding merges, you can push the feature branch directly to origin/master using `git push feature/branch: master` You don't ever really need to have a 'local master'
*there's a whitespace typo in the last command, beware
w3ird @w3ird - 1y
you animal