What the Hell is Git….!

stupid content tracker

$ mkdir Demo
$ cd Demo
$ git init

Understanding “.git” Folder Structure

Lightweight tag

These are the simplest way to add a tag to your git repository because they store only the hash of the commit they refer to. They are created with the absence of the -a, -s, or -m options and do not contain any extra information. lets start to create one lightweight tag. For creating tag just run below command.

$ git tag Dev

Annotated tag

Annotated tags store extra metadata such as author name, release notes, tag-message, and date as full objects in the Git database. All this data is important for a public release of your project. we can create annotated tag by running below command “-a” specifies annotated and “-m” specifies message.

$ git tag -a Prod -m "Iam Annotated tag"

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhishek N

Abhishek is a Software developer who is passionate about learning technology related stuff and implementing it in real world.