Skip to content

Instantly share code, notes, and snippets.

@Samk13
Last active September 5, 2023 20:28
Show Gist options
  • Save Samk13/7251b861a1753e2b41e04e8dfe88a20f to your computer and use it in GitHub Desktop.
Save Samk13/7251b861a1753e2b41e04e8dfe88a20f to your computer and use it in GitHub Desktop.

Git related shit ...

Mark a specific point in the codebase as a release version

git commit --allow-empty -m "release: v1.00.0"
git tag v1.00.0
git push origin v1.00.0

The sequence of commands performs the following actions in a Git repository:

git commit --allow-empty -m "release: v0.25.9": Creates an empty commit with the message "release: v0.25.9". git tag v0.25.9: Tags the latest commit with the version label "v0.25.9". git push origin v0.25.9: Pushes the tag "v0.25.9" to the remote repository named "origin". This sequence is commonly used to mark a specific point in the codebase as a release version and to push that marker to a remote repository.

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