Answers for "git add a tag to a commit"

7

git add tag

git tag -a v1.2 
git push origin v1.2
Posted by: Guest on June-02-2020
1

how to push tag for a commit

git tag "tag_name" "commit_hash" # fill tag_name and commit_hash
git push --tags # to push created tag
Posted by: Guest on April-04-2021
0

how to Add new commit to the existing Git tag

# Create a new branch from tag v1.1
git checkout -b newbranch v1.1

# Do some work and commit it

# Create a new tag from your work
git tag -a -m "Tag version 1.1.1, a bugfix release" v1.1.1
Posted by: Guest on December-17-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language