

jszabo_98 on 20 Useful wmic command examples in Windows | Cheat Sheet.
Git tag and push how to#
Airlane on How to Update Google Chrome to Latest Version on Ubuntu/Debian.
Git tag and push install#

Now to tag version v1.4 to commit ID d096118, you need to use git tag -a v1.4 d096118 -m "Tagging Commit ID: d096118" command as shown below. In our case, we are going to tag commit ID d09611850909e47b2ee27f4fab23f7ddddd298ab as highlighted below. You need to check the output of git log to identify the commit which you want to tag.

For you, it could be a different branch but in our case, we are going to tag a release version to the commit done in master branch. You can also quickly verify your current branch by using git branch command. Then you need to switch to the cloned directory by using cd atlantis-example/ command. Remote: Total 32 (delta 2), reused 8 (delta 1), pack-reused 23 Remote: Compressing objects: 100% (8/8), done. Remote: Counting objects: 100% (9/9), done. This will create a directory called atlantis-example and copy all the repo files in it. In our case, we are having a GitHub repo called atlantis-example which we are cloning into our local system using git clone command as shown below. How to Tag a Git Commit Using 6 Simple StepsĪlso Read: Solved "git add shows unable to index file Permission denied" error Step 1: PrerequisitesĪ) You should have a running Windows/Linux/Unix System.ī) You should have git utility installed in your System.Ĭ) You should have access to tag a Specific commit in Remote.įirst of all, you need to clone your repo to the local system by using git clone. Here we will see the steps in detail with the help of a real world example. Hence it is important to understand the right process that you can follow to tag a commit both on local as well as on remote. So as you can visualize there are a number of benefits in tagging a git commit. A tag also act as a break point from where you can start a new development or you may even perform a bugfix or hotfix on top of that previous tagged commit if in case any issues got identified. If you are using Git based version control system then you might be aware that tagging a commit is like marking or labelling your work as you progress in your project release and deployment activities so that in future if you want to refer then it will be easy for you to identify and access those works.

In this article, we will see how to tag a Git commit Using 6 Simple Steps.
