How to rename local/remote branch in GIT

The first step is to checkout to branch which we want to rename and then:

To delete the old branch type this in terminal:


Tagging in GIT

In git repositories we can use tagging functionality to mark a point in history. Usually developers use this feature to mark new release version of their projects. To simply add new tag just use this code:

It will tag repository with ‘v1.1.0’. We can also use tagging with additional comment:

To list all available tags in history use just: