I have vastly simplified my git workflow with some aliases that work in a variety of settings
git synced #<- sync (rebase) current branch with upstream if defined, otherwise origin. Uses master or main, preferring main
git pub #<- publish my changes to remote origin (force push with lease)
git pr #<- open appropriate PR to github (no GH client needed, just opens the URL). PR goes to upstream if defined
git hub #<- opens github page for repo
https://softwaredoug.com/blog/2022/11/09/idiot-proof-git-ali...