{"id":21199,"date":"2015-07-09T22:55:40","date_gmt":"2015-07-10T02:55:40","guid":{"rendered":"http:\/\/ssgreenberg.name\/PoliticsBlog\/?p=21199"},"modified":"2015-07-10T08:50:09","modified_gmt":"2015-07-10T12:50:09","slug":"git-some-version-control","status":"publish","type":"post","link":"https:\/\/ssgreenberg.name\/PoliticsBlog\/2015\/07\/09\/git-some-version-control\/","title":{"rendered":"GIT Some Version Control"},"content":{"rendered":"<p>My project to write a replacement for Quicken was getting to the point where I decided I needed some version control of my software.  I have used many flavors of this kind of software during my career.  I think the first was DEC&#8217;s C(ode) M(anagement) S(ystem) &#8211; CMS.  I have also used SCCS, RCS, CVS, and Cleartool.  Rather than just use one of the tools I have used before, I decided to look into what is current.  I have heard a lot about <a href=\"https:\/\/github.com\/\" target=\"_blank\" title=\"GitHub web site\">GIT<\/a>. I decided to give it a try.<\/p>\n<p>There is a book out, <a href=\"https:\/\/git-scm.com\/book\/en\/v2\" target=\"_blank\" title=\"Online versio of the book\">Pro Git book<\/a>, written by Scott Chacon and Ben Straub and published by Apress.  This should give you more idea of what GIT is, if you don&#8217;t already know.<\/p>\n<p>I had GIT up and running very quickly, but there were a few operations that I was used to that I could not figure out how to do. All of the documentation that I could find on the web assumed you understood a key concept that I wasn&#8217;t getting.  It finally dawned on me what the issue was, so I drew a picture to clarify the idea.  If you are a GIT beginner, you might find it helpful.<\/p>\n<div style=\"text-align:center\">\n<a href=\"http:\/\/ssgreenberg.name\/PoliticsBlog\/wp-content\/uploads\/2015\/07\/GitHubAndSpokes.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ssgreenberg.name\/PoliticsBlog\/wp-content\/uploads\/2015\/07\/GitHubAndSpokes-300x248.png\" alt=\"picture of Git hub and spokes\" width=\"300\" height=\"248\" class=\"aligncenter size-medium wp-image-21200\" srcset=\"https:\/\/ssgreenberg.name\/PoliticsBlog\/wp-content\/uploads\/2015\/07\/GitHubAndSpokes-300x248.png 300w, https:\/\/ssgreenberg.name\/PoliticsBlog\/wp-content\/uploads\/2015\/07\/GitHubAndSpokes-150x124.png 150w, https:\/\/ssgreenberg.name\/PoliticsBlog\/wp-content\/uploads\/2015\/07\/GitHubAndSpokes-1024x846.png 1024w, https:\/\/ssgreenberg.name\/PoliticsBlog\/wp-content\/uploads\/2015\/07\/GitHubAndSpokes.png 1312w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n<\/div>\n<p>My issue was that I had two cloned repositories and I wanted to update one from the work in the other.  At the time, I had not created a hub, and didn&#8217;t know why I would need one.  Now I see that the clone repositories aren&#8217;t really meant to talk to each other.  Their common means of communication is only through the hub.  It is possible to set up a local hub.  It only took me 39 different commands to do it.  Only the last 4 of those commands were necessary.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My project to write a replacement for Quicken was getting to the point where I decided I needed some version control of my software. I have used many flavors of this kind of software during my career. I think the first was DEC&#8217;s C(ode) M(anagement) S(ystem) &#8211; CMS. I have also used SCCS, RCS, CVS, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[166],"tags":[],"class_list":{"0":"post-21199","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-stevegsposts","7":"czr-hentry"},"_links":{"self":[{"href":"https:\/\/ssgreenberg.name\/PoliticsBlog\/wp-json\/wp\/v2\/posts\/21199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ssgreenberg.name\/PoliticsBlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssgreenberg.name\/PoliticsBlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssgreenberg.name\/PoliticsBlog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ssgreenberg.name\/PoliticsBlog\/wp-json\/wp\/v2\/comments?post=21199"}],"version-history":[{"count":6,"href":"https:\/\/ssgreenberg.name\/PoliticsBlog\/wp-json\/wp\/v2\/posts\/21199\/revisions"}],"predecessor-version":[{"id":21208,"href":"https:\/\/ssgreenberg.name\/PoliticsBlog\/wp-json\/wp\/v2\/posts\/21199\/revisions\/21208"}],"wp:attachment":[{"href":"https:\/\/ssgreenberg.name\/PoliticsBlog\/wp-json\/wp\/v2\/media?parent=21199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssgreenberg.name\/PoliticsBlog\/wp-json\/wp\/v2\/categories?post=21199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssgreenberg.name\/PoliticsBlog\/wp-json\/wp\/v2\/tags?post=21199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}