Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Ben Goldberg 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

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 Leaders.
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 Leaders.
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 Leaders.
January 31, 2015

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events