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 - 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
-
-
-
Cloning with limited history1m 33s
-
(Locked)
Adding to a previous commit4m 36s
-
(Locked)
Identifying your changes2m 26s
-
(Locked)
Managing multiple remotes2m 42s
-
(Locked)
Cleaner logs3m 25s
-
(Locked)
Using Git to hunt down bugs5m 7s
-
(Locked)
Working on multiple branches3m 19s
-
(Locked)
Creating a .zip file2m 57s
-
(Locked)
Getting rid of quick fixes4m 48s
-
(Locked)
Marking items without branching4m 8s
-
(Locked)
Removing untracked files2m 44s
-
(Locked)
Renaming branches2m 31s
-
(Locked)
Remove local, keep master3m 15s
-
(Locked)
Picking specific commits4m 30s
-
(Locked)
Creating a safety net for fixes2m 51s
-