git init
git add .
git commit -m "Initial commit"
git tag 1.0.0
git switch -c develop
Some commit later..
git switch -c release/1.1
One commit...
git tag 1.1.0-beta.1
git swtich main
git merge release/1.1
git tag 1.1.0
git branch -D release/1.1
git switch develop
git switch main
git switch -b hotfix/1.1
One commit later
git switch main
git merge hotfix/1.1
git tag 1.1.1
git branch -D hotfix/1.1