![]() Let's take a peek at the BRANCH ref for the master branch. The first pointer is a branch reference (let's call it a BRANCH ref from now on) and it identifies the most recent commit-the "tip" or present state-of a branch by storing its SHA-1 value in a file within the directory. In the repository, you can see I made a few commits on the master branch, and then added a few commits on its two child branches branch1 and branch2. To help explain, I'll be using this toy repository below-feel free to clone it and follow along. git directory is chock full of information about a codebase and its history, but the only components we'll be needing here are two types of pointers. To understand how git checkout and git reset work, we're going to need to visit a place that most developers pretend doesn't exist, if not dread.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |