From the course: Coding Exercises: Git

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Marking items without branching

Marking items without branching - Git Tutorial

From the course: Coding Exercises: Git

Marking items without branching

(tones ringing) - [Instructor] Most projects have what we call a main branch, and this is where the canonical history of the project lives. Now, occasionally, you need a way to establish that certain commits in that main commit history are finished versions of the project. How does Git help you do that? I'll give you a couple of seconds to think about how you would do something like this. (tones ringing) (upbeat music) (tones ringing) Now the answer to this is tags, and this is how you can create an identifier for a specific commit that will show you later that you have reached a version of the project. So if I do a git log command, you can see all of the different commits right here. So I can choose a specific commit and identify it as a current version of the project. Now if you just use the git tag command and then you add a version, and typically the versions are named like this, use the keyword v, and…

Contents