{"id":23765,"date":"2023-05-10T02:52:18","date_gmt":"2023-05-10T02:52:18","guid":{"rendered":"https:\/\/www.booksofall.com\/pl\/?post_type=product&#038;p=23765"},"modified":"2023-05-10T02:52:18","modified_gmt":"2023-05-10T02:52:18","slug":"pro-git","status":"publish","type":"product","link":"https:\/\/www.booksofall.com\/pl\/pro-git\/","title":{"rendered":"Pro Git"},"content":{"rendered":"<h2>Getting Started<\/h2>\n<p>This chapter will be about getting started with Git. We will begin by explaining some background on version control tools, then move on to how to get Git running on your system and finally how to get it set up to start working with. At the end of this chapter you should understand why Git is around, why you should use it and you should be all set up to do so.<\/p>\n<h3>About Version Control<\/h3>\n<p><b>\u00a0<\/b>What is \u201c<a href=\"https:\/\/www.atlassian.com\/git\/tutorials\/what-is-version-control\">version control<\/a>\u201d, and why should you care? Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later. For the examples in this book, you will use software source code as the files being version controlled, though in reality you can do this with nearly any type of file on a computer.<\/p>\n<p>If you are a graphic or web designer and want to keep every version of an image or layout (which you would most certainly want to), a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Version_control\">Version Control<\/a> System (VCS) is a very wise thing to use. It allows you to revert selected files back to a previous state, revert the entire project back to a previous state, compare changes over time, see who last modified something that might be causing a problem, who introduced an issue and when, and more. Using a VCS also generally means that if you screw things up or lose files, you can easily recover. In addition, you get all this for very little overhead.<\/p>\n<h4>Local Version Control Systems<\/h4>\n<p>Many people\u2019s version-control method of choice is to copy files into another directory (perhaps a time-stamped directory, if they\u2019re clever). This approach is very common because it is so simple, but it is also incredibly error prone. It is easy to forget which directory you\u2019re in and accidentally write to the wrong file or copy over files you don\u2019t mean to.<\/p>\n<p>To deal with this issue, programmers long ago developed local VCSs that had a simple database that kept all the changes to files under revision control.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"423\" height=\"367\" class=\"alignnone size-full wp-image-23769 \" src=\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2023\/05\/img_645b044e5e1b7.png\" alt=\"\" \/><\/p>\n<p>One of the most popular VCS tools was a system called RCS, which is still distributed with many computers today.<a href=\"https:\/\/en.wikipedia.org\/wiki\/Revision_Control_System\"> RCS<\/a> works by keeping patch sets (that is, the differences between files) in a special format on disk; it can then re-create what any file looked like at any point in time by adding up all the patches.<\/p>\n<h4>Centralized Version Control Systems<\/h4>\n<p>The next major issue that people encounter is that they need to collaborate with developers on other systems. To deal with this problem, Centralized Version Control Systems (CVCSs) were developed. These systems (such as CVS, <a href=\"https:\/\/subversion.apache.org\/\">Subversion<\/a>, and <a href=\"https:\/\/www.perforce.com\/\">Perforce<\/a>) have a single server that contains all the versioned files, and a number of clients that check out files from that central place. For many years, this has been the standard for version control.<\/p>\n<p id=\"EyVTOLe\"><img loading=\"lazy\" decoding=\"async\" width=\"412\" height=\"189\" class=\"alignnone size-full wp-image-23770 \" src=\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2023\/05\/img_645b046b2a403.png\" alt=\"\" \/><\/p>\n<p>This setup offers many advantages, especially over local VCSs. For example, everyone knows to a certain degree what everyone else on the project is doing. Administrators have fine-grained control over who can do what, and it\u2019s far easier to administer a CVCS than it is to deal with local databases on every client.<\/p>\n<p>However, this setup also has some serious downsides. The most obvious is the single point of failure that the centralized server represents. If that server goes down for an hour, then during that hour nobody can collaborate at all or save versioned changes to anything they\u2019re working on. If the hard disk the central database is on becomes corrupted, and proper backups haven\u2019t been kept, you lose absolutely everything\u2009\u2014\u2009the entire history of the project except whatever single snapshots people happen to have on their local machines. Local VCSs suffer from this same problem\u2009\u2014\u2009whenever you have the entire history of the project in a single place, you risk losing everything.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><iframe style=\"width: 100%; height: 750px; border: none;\" src=\"https:\/\/online.visual-paradigm.com\/share\/book\/pro-git-cc-by-nc-sa-3-0--1cmyxepoly?p=1\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"featured_media":23771,"template":"","meta":{"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"If you're new to Git and need some guidance, look no further! This resource has everything you need to get started. Enjoy your reading!"},"product_brand":[],"product_cat":[386],"product_tag":[],"class_list":{"0":"post-23765","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>Pro Git - BooksOfAll Polish<\/title>\n<meta name=\"description\" content=\"If you&#039;re new to Git and need some guidance, look no further! This resource has everything you need to get started. Enjoy your reading!\" \/>\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\/pl\/pro-git\/\" \/>\n<meta property=\"og:locale\" content=\"pl_PL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pro Git - BooksOfAll Polish\" \/>\n<meta property=\"og:description\" content=\"If you&#039;re new to Git and need some guidance, look no further! This resource has everything you need to get started. Enjoy your reading!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.booksofall.com\/pl\/pro-git\/\" \/>\n<meta property=\"og:site_name\" content=\"BooksOfAll Polish\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2023\/05\/Pro-Git.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2023\/05\/Pro-Git.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Szacowany czas czytania\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minuty\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.booksofall.com\/pl\/pro-git\/\",\"url\":\"https:\/\/www.booksofall.com\/pl\/pro-git\/\",\"name\":\"Pro Git - BooksOfAll Polish\",\"isPartOf\":{\"@id\":\"https:\/\/www.booksofall.com\/pl\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.booksofall.com\/pl\/pro-git\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/pl\/pro-git\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2023\/05\/Pro-Git.jpg\",\"datePublished\":\"2023-05-10T02:52:18+00:00\",\"description\":\"If you're new to Git and need some guidance, look no further! This resource has everything you need to get started. Enjoy your reading!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.booksofall.com\/pl\/pro-git\/#breadcrumb\"},\"inLanguage\":\"pl-PL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.booksofall.com\/pl\/pro-git\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\/\/www.booksofall.com\/pl\/pro-git\/#primaryimage\",\"url\":\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2023\/05\/Pro-Git.jpg\",\"contentUrl\":\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2023\/05\/Pro-Git.jpg\",\"width\":\"827\",\"height\":\"1169\",\"caption\":\"Pro Git\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.booksofall.com\/pl\/pro-git\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.booksofall.com\/pl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Categories\",\"item\":\"https:\/\/www.booksofall.com\/pl\/categories\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Pro Git\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.booksofall.com\/pl\/#website\",\"url\":\"https:\/\/www.booksofall.com\/pl\/\",\"name\":\"BooksOfAll Polish\",\"description\":\"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.\",\"publisher\":{\"@id\":\"https:\/\/www.booksofall.com\/pl\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.booksofall.com\/pl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pl-PL\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.booksofall.com\/pl\/#organization\",\"name\":\"BooksOfAll Polish\",\"url\":\"https:\/\/www.booksofall.com\/pl\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\/\/www.booksofall.com\/pl\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/booksofall-logo-2.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/booksofall-logo-2.png\",\"width\":166,\"height\":30,\"caption\":\"BooksOfAll Polish\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/pl\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pro Git - BooksOfAll Polish","description":"If you're new to Git and need some guidance, look no further! This resource has everything you need to get started. Enjoy your reading!","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\/pl\/pro-git\/","og_locale":"pl_PL","og_type":"article","og_title":"Pro Git - BooksOfAll Polish","og_description":"If you're new to Git and need some guidance, look no further! This resource has everything you need to get started. Enjoy your reading!","og_url":"https:\/\/www.booksofall.com\/pl\/pro-git\/","og_site_name":"BooksOfAll Polish","og_image":[{"url":"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2023\/05\/Pro-Git.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2023\/05\/Pro-Git.jpg","twitter_misc":{"Szacowany czas czytania":"3 minuty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.booksofall.com\/pl\/pro-git\/","url":"https:\/\/www.booksofall.com\/pl\/pro-git\/","name":"Pro Git - BooksOfAll Polish","isPartOf":{"@id":"https:\/\/www.booksofall.com\/pl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.booksofall.com\/pl\/pro-git\/#primaryimage"},"image":{"@id":"https:\/\/www.booksofall.com\/pl\/pro-git\/#primaryimage"},"thumbnailUrl":"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2023\/05\/Pro-Git.jpg","datePublished":"2023-05-10T02:52:18+00:00","description":"If you're new to Git and need some guidance, look no further! This resource has everything you need to get started. Enjoy your reading!","breadcrumb":{"@id":"https:\/\/www.booksofall.com\/pl\/pro-git\/#breadcrumb"},"inLanguage":"pl-PL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.booksofall.com\/pl\/pro-git\/"]}]},{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/www.booksofall.com\/pl\/pro-git\/#primaryimage","url":"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2023\/05\/Pro-Git.jpg","contentUrl":"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2023\/05\/Pro-Git.jpg","width":"827","height":"1169","caption":"Pro Git"},{"@type":"BreadcrumbList","@id":"https:\/\/www.booksofall.com\/pl\/pro-git\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.booksofall.com\/pl\/"},{"@type":"ListItem","position":2,"name":"Categories","item":"https:\/\/www.booksofall.com\/pl\/categories\/"},{"@type":"ListItem","position":3,"name":"Pro Git"}]},{"@type":"WebSite","@id":"https:\/\/www.booksofall.com\/pl\/#website","url":"https:\/\/www.booksofall.com\/pl\/","name":"BooksOfAll Polish","description":"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.","publisher":{"@id":"https:\/\/www.booksofall.com\/pl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.booksofall.com\/pl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pl-PL"},{"@type":"Organization","@id":"https:\/\/www.booksofall.com\/pl\/#organization","name":"BooksOfAll Polish","url":"https:\/\/www.booksofall.com\/pl\/","logo":{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/www.booksofall.com\/pl\/#\/schema\/logo\/image\/","url":"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/booksofall-logo-2.png","contentUrl":"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/booksofall-logo-2.png","width":166,"height":30,"caption":"BooksOfAll Polish"},"image":{"@id":"https:\/\/www.booksofall.com\/pl\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/product\/23765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/media\/23771"}],"wp:attachment":[{"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/media?parent=23765"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/product_brand?post=23765"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/product_cat?post=23765"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/product_tag?post=23765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}