I created a repo in github and cloned it in my local machine. then i created a development branch in my local machine and then pushed it ( sample below). i want to create a feature branch from the development and once merged to development , i want to create/tag it for a release which gets merge to master. do i need extensions like gitflow for that or can i do that without?
I haven't tried the gitflow extension yet.
git checkout -b development
git push origin development
CodePudding user response:
Creating an annotated tag in Git is simple. The easiest way is to specify -a
when you run the tag
command:
$ git tag -a v1.4 -m "my version 1.4"
$ git tag
v0.1
v1.3
v1.4
The -m
specifies a tagging message, which is stored with the tag. If you don’t specify a message for an annotated tag, Git launches your editor so you can type it in.
You can see the tag data along with the commit that was tagged by using the git show
command:
$ git show v1.4
tag v1.4
Tagger: Ben Straub <[email protected]>
Date: Sat May 3 20:19:12 2014 -0700
my version 1.4
commit ca82a6dff817ec66f44342007202690a93763949
Author: Scott Chacon <[email protected]>
Date: Mon Mar 17 21:52:11 2008 -0700
Change version number