Any way to mark commits in git?

0 votes
My work involves using git. Time and again test a commit to check if it is working fine and then mark such commits as release. Till now I've been branching to do this, but I have to do a lot of back and forth for it. is there any other way to mark some of my master releases.
May 3, 2018 in DevOps & Agile by Atul
• 10,240 points
32 views

1 answer to this question.

0 votes

You can try and use git tags.

Also add the following alias to ~/.gitconfig:

release = !git tag -a release-$(git tag -l "release-*"|wc -l|sed 's/ //g')-$(git symbolic-ref --short HEAD)-$(git rev-parse HEAD)

You will create an annotated tag in this form:

release-<release number>-<branch name>-<commit hash>
answered May 3, 2018 by DareDev
• 6,810 points

Related Questions In DevOps & Agile

+1 vote
2 answers
+1 vote
2 answers

is it possible to assign a Feature/User Story/Task to a team [Group] in VSTS

In most cases, we would break Work ...READ MORE

answered Oct 11, 2018 in DevOps & Agile by lina
• 8,110 points
764 views
+5 votes
3 answers

Steps to Call Python method in BuildBot

To run python code, you must write ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by ajs3033
• 7,280 points

edited Oct 12, 2018 by Kalgi 294 views
+3 votes
1 answer

Unable to find the TargetArguments path While configuring dot cover in VSTS

For your unable to find the TargetArguments ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by ajs3033
• 7,280 points
96 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
177 views
0 votes
1 answer
+13 votes
2 answers
0 votes
1 answer

How to disable auto-restart task in TeamCity

There is a parameter which can be ...READ MORE

answered Apr 29, 2018 in DevOps & Agile by DareDev
• 6,810 points
67 views