{"id":23782,"date":"2023-05-10T03:46:34","date_gmt":"2023-05-10T03:46:34","guid":{"rendered":"https:\/\/www.booksofall.com\/es\/?post_type=product&#038;p=23782"},"modified":"2023-05-10T03:46:34","modified_gmt":"2023-05-10T03:46:34","slug":"git-from-the-bottom-up","status":"publish","type":"product","link":"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/","title":{"rendered":"Git from the bottom up"},"content":{"rendered":"<h1>Introduction<\/h1>\n<p>Welcome to the world of Git. I hope this document will help to advance your understanding of this powerful content tracking system, and reveal a bit of the simplicity underlying it \u2014 however dizzying its array of options may seem from the outside.<\/p>\n<p>Before we dive in, there are a few terms which should be mentioned first, since they\u2019ll appear repeatedly throughout this text:<\/p>\n<ul>\n<li><strong>repository<\/strong>\u00a0\u2014 A\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Repository_(version_control)\"><strong>repository<\/strong>\u00a0<\/a>is a collection of\u00a0<em>commits<\/em>, each of which is an archive of what the project\u2019s\u00a0<em>working tree<\/em>\u00a0looked like at a past date, whether on your machine or someone else\u2019s. It also defines HEAD (see below), which identifies the branch or commit the current working tree stemmed from. Lastly, it contains a set of\u00a0<em>branches<\/em>\u00a0and\u00a0<em>tags<\/em>, to identify certain commits by name.<\/li>\n<li><strong>the index<\/strong>\u00a0\u2014 Unlike other, similar tools you may have used, Git does not commit changes directly from the\u00a0<em>working tree<\/em>\u00a0into the\u00a0<em>repository<\/em>. Instead, changes are first registered in something called\u00a0<strong>the index<\/strong>. Think of it as a way of \u201cconfirming\u201d your changes, one by one, before doing a commit (which records all your approved changes at once). Some find it helpful to call it instead as the \u201cstaging area\u201d, instead of the index.<\/li>\n<li><a href=\"https:\/\/git-scm.com\/docs\/git-worktree\"><strong>working tree<\/strong><\/a>\u00a0\u2014 A\u00a0<strong>working tree<\/strong>\u00a0is any directory on your filesystem which has a\u00a0<em>repository<\/em>\u00a0associated with it (typically indicated by the presence of a sub-directory within it named\u00a0<code>.git<\/code>.). It includes all the files and sub-directories in that directory.<\/li>\n<li><strong>commit<\/strong>\u00a0\u2014 A\u00a0<strong>commit<\/strong>\u00a0is a snapshot of your working tree at some point in time. The state of HEAD (see below) at the time your commit is made becomes that commit\u2019s parent. This is what creates the notion of a \u201crevision history\u201d.<\/li>\n<li><strong>branch<\/strong>\u00a0\u2014 A\u00a0<strong>branch<\/strong>\u00a0is just a name for a commit (and much more will be said about commits in a moment), also called a reference. It\u2019s the parentage of a commit which defines its history, and thus the typical notion of a \u201cbranch of development\u201d.<\/li>\n<li><a href=\"https:\/\/www.atlassian.com\/git\/tutorials\/inspecting-a-repository\/git-tag\"><strong>tag<\/strong>\u00a0<\/a>\u2014 A\u00a0<strong>tag<\/strong>\u00a0is also a name for a commit, similar to a\u00a0<em>branch<\/em>, except that it always names the same commit, and can have its own description text.<\/li>\n<li><strong>master<\/strong>\u00a0\u2014 The mainline of development in most repositories is done on a branch called \u201c**master**\u201d. Although this is a typical default, it is in no way special.<\/li>\n<li><strong>HEAD<\/strong>\u00a0\u2014\u00a0<strong>HEAD<\/strong>\u00a0is used by your repository to define what is currently checked out:\n<ul>\n<li>If you checkout a branch, HEAD symbolically refers to that branch, indicating that the branch name should be updated after the next commit operation.<\/li>\n<li>If you checkout a specific commit, HEAD refers to that commit only. This is referred to as a detached\u00a0<em>HEAD<\/em>, and occurs, for example, if you check out a tag name.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>The usual flow of events is this: After creating a repository, your work is done in the working tree. Once your work reaches a significant point \u2014 the completion of a bug, the end of the working day, a moment when everything compiles \u2014 you add your changes successively to the index. Once the index contains everything you intend to commit, you record its content in the repository. Here\u2019s a simple diagram that shows a typical <a href=\"https:\/\/www.projectmanager.com\/blog\/what-is-the-project-management-life-cycle\">project\u2019s life-cycle<\/a>:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/05\/lifecycle.png\" alt=\"Project Lifecycle\" \/><\/p>\n<p>With this basic picture in mind, the following sections shall attempt to describe how each of these different entities is important to the operation of Git.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><iframe style=\"width: 100%; height: 750px; border: none;\" src=\"https:\/\/online.visual-paradigm.com\/share\/book\/git-from-the-bottom-up-1cmyxfc78q?p=1\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"featured_media":23787,"template":"","meta":{"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Understanding the basic knowledge of Git is essential for anyone who wants to use this powerful version control system. Start learning with this book now!"},"product_brand":[],"product_cat":[386],"product_tag":[],"class_list":{"0":"post-23782","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-version-control-systems","8":"first","9":"instock","10":"shipping-taxable","11":"product-type-simple"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Git from the bottom up - BooksOfAll Spanish<\/title>\n<meta name=\"description\" content=\"Understanding the basic knowledge of Git is essential for anyone who wants to use this powerful version control system. Start learning with this book now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git from the bottom up - BooksOfAll Spanish\" \/>\n<meta property=\"og:description\" content=\"Understanding the basic knowledge of Git is essential for anyone who wants to use this powerful version control system. Start learning with this book now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/\" \/>\n<meta property=\"og:site_name\" content=\"BooksOfAll Spanish\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/05\/Git-from-the-bottom-up.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/05\/Git-from-the-bottom-up.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/\",\"url\":\"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/\",\"name\":\"Git from the bottom up - BooksOfAll Spanish\",\"isPartOf\":{\"@id\":\"https:\/\/www.booksofall.com\/es\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/05\/Git-from-the-bottom-up.jpg\",\"datePublished\":\"2023-05-10T03:46:34+00:00\",\"description\":\"Understanding the basic knowledge of Git is essential for anyone who wants to use this powerful version control system. Start learning with this book now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/#primaryimage\",\"url\":\"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/05\/Git-from-the-bottom-up.jpg\",\"contentUrl\":\"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/05\/Git-from-the-bottom-up.jpg\",\"width\":\"827\",\"height\":\"1169\",\"caption\":\"Git from the bottom up\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.booksofall.com\/es\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Categories\",\"item\":\"https:\/\/www.booksofall.com\/es\/categories\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Git from the bottom up\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.booksofall.com\/es\/#website\",\"url\":\"https:\/\/www.booksofall.com\/es\/\",\"name\":\"BooksOfAll Spanish\",\"description\":\"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.\",\"publisher\":{\"@id\":\"https:\/\/www.booksofall.com\/es\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.booksofall.com\/es\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.booksofall.com\/es\/#organization\",\"name\":\"BooksOfAll Spanish\",\"url\":\"https:\/\/www.booksofall.com\/es\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.booksofall.com\/es\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2022\/06\/booksofall-logo-2.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2022\/06\/booksofall-logo-2.png\",\"width\":166,\"height\":30,\"caption\":\"BooksOfAll Spanish\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/es\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Git from the bottom up - BooksOfAll Spanish","description":"Understanding the basic knowledge of Git is essential for anyone who wants to use this powerful version control system. Start learning with this book now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/","og_locale":"es_ES","og_type":"article","og_title":"Git from the bottom up - BooksOfAll Spanish","og_description":"Understanding the basic knowledge of Git is essential for anyone who wants to use this powerful version control system. Start learning with this book now!","og_url":"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/","og_site_name":"BooksOfAll Spanish","og_image":[{"url":"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/05\/Git-from-the-bottom-up.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/05\/Git-from-the-bottom-up.jpg","twitter_misc":{"Tiempo de lectura":"3 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/","url":"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/","name":"Git from the bottom up - BooksOfAll Spanish","isPartOf":{"@id":"https:\/\/www.booksofall.com\/es\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/#primaryimage"},"image":{"@id":"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/#primaryimage"},"thumbnailUrl":"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/05\/Git-from-the-bottom-up.jpg","datePublished":"2023-05-10T03:46:34+00:00","description":"Understanding the basic knowledge of Git is essential for anyone who wants to use this powerful version control system. Start learning with this book now!","breadcrumb":{"@id":"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/#primaryimage","url":"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/05\/Git-from-the-bottom-up.jpg","contentUrl":"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2023\/05\/Git-from-the-bottom-up.jpg","width":"827","height":"1169","caption":"Git from the bottom up"},{"@type":"BreadcrumbList","@id":"https:\/\/www.booksofall.com\/es\/git-from-the-bottom-up\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.booksofall.com\/es\/"},{"@type":"ListItem","position":2,"name":"Categories","item":"https:\/\/www.booksofall.com\/es\/categories\/"},{"@type":"ListItem","position":3,"name":"Git from the bottom up"}]},{"@type":"WebSite","@id":"https:\/\/www.booksofall.com\/es\/#website","url":"https:\/\/www.booksofall.com\/es\/","name":"BooksOfAll Spanish","description":"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.","publisher":{"@id":"https:\/\/www.booksofall.com\/es\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.booksofall.com\/es\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/www.booksofall.com\/es\/#organization","name":"BooksOfAll Spanish","url":"https:\/\/www.booksofall.com\/es\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.booksofall.com\/es\/#\/schema\/logo\/image\/","url":"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2022\/06\/booksofall-logo-2.png","contentUrl":"https:\/\/www.booksofall.com\/es\/wp-content\/uploads\/sites\/5\/2022\/06\/booksofall-logo-2.png","width":166,"height":30,"caption":"BooksOfAll Spanish"},"image":{"@id":"https:\/\/www.booksofall.com\/es\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/product\/23782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/media\/23787"}],"wp:attachment":[{"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/media?parent=23782"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/product_brand?post=23782"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/product_cat?post=23782"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.booksofall.com\/es\/wp-json\/wp\/v2\/product_tag?post=23782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}