Add a new blog
December 6

Git tagging

To create a tag on your current branch, run this:

git tag 

If you want to include a description with your tag, add -a to create an annotated tag:

git tag -a

This will create a local tag with the current state of the branch you are on. When pushing to your remote repo, tags are NOT included by default. You will need

December 6

Git branch

You’ve decided that you’re going to work on feature_12 as an example. To create a new branch and switch to it at the same time, you can run the git checkout command with the -b switch:

$ git checkout -b feature_12
Switched to a new branch "feature_12"

This is shorthand for:

$ git branch feature_12
$ git checkout feature_12

After you are done with

Send us a message. We will reply as soon as we can.

Save your professional blogger profile.

Join our blogger group and earn more income.

Sign up Log in