The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to label code at a particular point in time?

Ben Goldberg
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 30, 2015

I'm used to using TFS or PVCS and both allow you to label particular revisions so that you can get back to a given point in time. Is there any way to do this with Git?

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
rahuldanwade
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 1, 2015

Hi Ben,

You can attach tags to particular commit using git tag command  or from source-tree you can click on tag button.

You can't attach a tag to multiple commit, but you can attach multiple tags to a single commit.

In case if you want to move a tag from a commit to another commit you can do that as well.

 

0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 1, 2015

It's called "tag" in Git.

0 votes
Norman Abramovitz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 31, 2015

You use labeling and if you really need restore back then you create a branch for that label.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events