{"id":117,"date":"2009-11-05T12:00:18","date_gmt":"2009-11-05T17:00:18","guid":{"rendered":"http:\/\/ebixio.com\/blog\/?p=117"},"modified":"2009-11-05T12:00:18","modified_gmt":"2009-11-05T17:00:18","slug":"git-file-transition-diagram","status":"publish","type":"post","link":"http:\/\/ebixio.com\/blog\/2009\/11\/05\/git-file-transition-diagram\/","title":{"rendered":"Git file transition diagram"},"content":{"rendered":"<p>Here&#8217;s a Git cheat sheet on how to move content between the working directory, the staged area (the <code inline=\"on\">.git\/index<\/code> file) and the committed Git repository. It shows what happens to the file <code inline=\"on\">F<\/code> (or more correctly, to its content) in response to various git commands and how to undo\/revert an edit, or a <code inline=\"on\">git add<\/code>.<\/p>\n<p>F&#8217; represents the first modification to F, and F&#8221; the second modification to F.<\/p>\n<p><div id=\"attachment_121\" style=\"width: 508px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/ebixio.com\/blog\/wp-content\/uploads\/2009\/10\/GitFileTransitions1.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-121\" src=\"http:\/\/ebixio.com\/blog\/wp-content\/uploads\/2009\/10\/GitFileTransitions1.png\" alt=\"File transitions in Git\" width=\"498\" height=\"248\" class=\"size-full wp-image-121\" srcset=\"http:\/\/ebixio.com\/blog\/wp-content\/uploads\/2009\/10\/GitFileTransitions1.png 498w, http:\/\/ebixio.com\/blog\/wp-content\/uploads\/2009\/10\/GitFileTransitions1-300x149.png 300w\" sizes=\"auto, (max-width: 498px) 100vw, 498px\" \/><\/a><p id=\"caption-attachment-121\" class=\"wp-caption-text\">File transitions in Git<\/p><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a Git cheat sheet on how to move content between the working directory, the staged area (the .git\/index file) and the committed Git repository. It shows what happens to the file F (or more correctly, to its content) in response to various git commands and how to undo\/revert an edit, or a git add. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[4],"class_list":["post-117","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-git"],"_links":{"self":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/comments?post=117"}],"version-history":[{"count":0,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts\/117\/revisions"}],"wp:attachment":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/media?parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/categories?post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/tags?post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}