Answers for "tag a branch git"

1

Tag git branch

$ git tag -a v1.4 -m "my version 1.4"
$ git tag
v0.1
v1.3
v1.4

By default, the git push command doesn’t transfer 
tags to remote servers. You will have to explicitly 
push tags to a shared server after you have created them. 
This process is just like sharing remote branches — 
you can run 

$ git push origin <tagname>.
Posted by: Guest on January-23-2022
1

git create branch from tag

git checkout -b newbranch v1.0
Posted by: Guest on October-19-2020
0

git which branch contains tag

git branch --contains tags/<tag>
Posted by: Guest on March-11-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language