been thinking about this very common git workflow and how git doesn't do much to help you ensure that if you're using this workflow:

a) you never commit to your local `main` branch directly
b) you regularly pull from `origin/main` to keep your local `main` branch up to date

you just need to be careful

branch protection on github/gitlab helps with this, but I don't think there's much in git itself

I feel like git has a lot of built in features to support the linux kernel's git workflow (like `git-send-email`, `git-format-patch`, etc) but not a lot of features to support the way people who use GitHub/Gitlab etc use git

obviously this makes sense since git comes from the linux kernel, but it seems a bit surprising that 16 years after github was launched I can't think of any (?) features in core git that were built to support the way people use git with github/gitlab/etc

@b0rk GitHub filled in much of the blanks with the gh command line tool. https://github.com/cli/cli This still leaves all of the other forges to fend for themselves. Pagure has pag. https://pagure.io/pag Gitea has tea. https://gitea.com/gitea/tea
GitHub - cli/cli: GitHub’s official command line tool

GitHub’s official command line tool. Contribute to cli/cli development by creating an account on GitHub.

GitHub
GitLab.org / cli · GitLab

A GitLab CLI tool bringing GitLab to your command line

GitLab
~emersion/hut - sourcehut git