Skip to content

Instantly share code, notes, and snippets.

@serrodcal
Created September 10, 2024 07:38
Show Gist options
  • Save serrodcal/b3f384e43656ff8bdf6cddf401eb655e to your computer and use it in GitHub Desktop.
Save serrodcal/b3f384e43656ff8bdf6cddf401eb655e to your computer and use it in GitHub Desktop.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment