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,190 points
19 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,520 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,100 points
412 views
+5 votes
2 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,000 points

edited Oct 12, 2018 by Kalgi 189 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,000 points
56 views
+13 votes
2 answers
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,520 points
36 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.