Reader small image

You're reading from  Cracking the Data Science Interview

Product typeBook
Published inFeb 2024
PublisherPackt
ISBN-139781805120506
Edition1st Edition
Concepts
Right arrow
Authors (2):
Leondra R. Gonzalez
Leondra R. Gonzalez
author image
Leondra R. Gonzalez

Leondra R. Gonzalez is a data scientist at Microsoft and Chief Data Officer for tech startup CulTRUE, with 10 years of experience in tech, entertainment, and advertising. During her academic career, she has completed educational opportunities with Google, Amazon, NBC, and AT&T.
Read more about Leondra R. Gonzalez

Aaren Stubberfield
Aaren Stubberfield
author image
Aaren Stubberfield

Aaren Stubberfield is a senior data scientist for Microsoft's digital advertising business and the author of three popular courses on Datacamp. He graduated with an MS in Predictive Analytics and has over 10 years of experience in various data science and analytical roles focused on finding insights for business-related questions.
Read more about Aaren Stubberfield

View More author details
Right arrow

Using Git tags for data science

Tagging in Git is a way to mark specific points in your repository’s history as being important. Typically, people use this functionality to mark release points (v1.0, v2.0, and so on). In this section, we’ll cover the concept of tagging and how it can benefit data scientists.

Understanding Git tags

There are two types of tags that Git recognizes, lightweight and annotated. A lightweight tag is similar to a branch that doesn’t change. It’s just a pointer to a specific commit. Annotated tags, however, are stored as full objects in the Git database. Using the annotated tag is generally recommended because it is fully tracked and contains more info than the lightweight tag.

To create an annotated tag in Git, you can use the git tag -a command, followed by the tag name (usually the version), and then the message, such as the following:

git tag -a v1.0 -m "my version 1.0"

To view the tags in your repository...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Cracking the Data Science Interview
Published in: Feb 2024Publisher: PacktISBN-13: 9781805120506

Authors (2)

author image
Leondra R. Gonzalez

Leondra R. Gonzalez is a data scientist at Microsoft and Chief Data Officer for tech startup CulTRUE, with 10 years of experience in tech, entertainment, and advertising. During her academic career, she has completed educational opportunities with Google, Amazon, NBC, and AT&T.
Read more about Leondra R. Gonzalez

author image
Aaren Stubberfield

Aaren Stubberfield is a senior data scientist for Microsoft's digital advertising business and the author of three popular courses on Datacamp. He graduated with an MS in Predictive Analytics and has over 10 years of experience in various data science and analytical roles focused on finding insights for business-related questions.
Read more about Aaren Stubberfield