Wednesday, May 19, 2021

GIT Basics - Comparing Tags

git status -> clean

git tag --list -> v-1.0


let's create few tags. For that we make few updates

mate index.html

git commit -a

Tweaking file for tag example

git log --online --graph --decorate -- all -> we still have only v-1.0

git tag -a v-1.1 -> Release 1.1

mate simple.html

git commit -am "updating for 1.1"


I just missed my way, need to amend my commit. Tag is not a branch.

git commit --amend -> amend message as "Release 1.2"


git tag v-1.2 -m "Release 1.2"

git tag --list

-------------

v-1.0

v-1.1

v-1.2


git log --online --graph --decorate -- all -> you can see tags applied to last 3 commits

-------------------------------------------------

*f932415 (HEAD, tag: v-1.2, master) Updating for tag 1.2

*34572f4 (tag:v-1.1) Tweaking file for tag exmaple

*2345df1 (tag:v-1.0, origin/master, origin/HEAD) Changes after ...


Difference between tags

diff v-1.0 v-1.1

difftool v-1.0 v-1.1

No comments:

Post a Comment