{"id":22450,"date":"2020-09-11T06:48:55","date_gmt":"2020-09-11T13:48:55","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=22450"},"modified":"2020-12-29T12:36:05","modified_gmt":"2020-12-29T20:36:05","slug":"git-reset","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/git-reset\/","title":{"rendered":"Git Reset To The Rescue"},"content":{"rendered":"\n<p>When you are working on a project by yourself or as part of a team, there might be instances when you want to undo a commit. The<code> git reset <\/code>command is one of the tools known to be a real lifesaver.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Git&#8217;s Tracking Mechanism<\/strong><\/h2>\n\n\n\n<p>Before going to <code>git reset<\/code>, we need to understand about the underlying structure of git. Git manages and tracks files, through tree-like structures with nodes and pointers.&nbsp;<\/p>\n\n\n\n<p>There are basically three of these &#8220;trees&#8221; on your local git repository:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>The Working Directory<\/strong>: Or working tree, and it refers to your local directory and <code>git status<\/code> will give you the state of your working directory.<\/li><li><strong>HEAD<\/strong>: Is just your current branch&#8217;s last commit snapshot. If you were to switch branches with <code>git checkout<\/code> then the HEAD will change to the last commit on the branch.<\/li><li><strong>Index<\/strong>: Or <strong>staging<\/strong> area. So when you <code>git add<\/code> files to commit it adds them to this index.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Git Workflow<\/strong><\/h2>\n\n\n\n<p>The following example shows making changes to a file and then adding it to index (staging) using <code>git add<\/code> then checking <code>git status<\/code> to see changes to be committed.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"362\" height=\"173\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/90942548-e22a7e00-e3db-11ea-8a56-72be4425b16d.png\" alt=\"\" class=\"wp-image-22451\" srcset=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/90942548-e22a7e00-e3db-11ea-8a56-72be4425b16d.png 362w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/90942548-e22a7e00-e3db-11ea-8a56-72be4425b16d-20x10.png 20w\" sizes=\"auto, (max-width: 362px) 100vw, 362px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Now when we do <code>git commit<\/code> it saves as a more permanent snapshot and updates the master and HEAD to that pointer. So if we do <code>git status<\/code> after <code>git commit<\/code>, we&#8217;ll see that all three trees are in the same state (there will be nothing to commit).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"362\" height=\"108\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/90944342-be6b3600-e3e3-11ea-8aeb-5add911cf4b2.png\" alt=\"\" class=\"wp-image-22452\" srcset=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/90944342-be6b3600-e3e3-11ea-8aeb-5add911cf4b2.png 362w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/90944342-be6b3600-e3e3-11ea-8aeb-5add911cf4b2-20x6.png 20w\" sizes=\"auto, (max-width: 362px) 100vw, 362px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>So what&#8217;s the purpose of <\/strong><strong>git reset<\/strong>?<\/h3>\n\n\n\n<p>You might be wondering why all this preamble just to get to <code>git reset<\/code>. Well <code>git reset<\/code> manipulates these trees in different ways. So git reset will accept a variety of options depending on what you want to do.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Git Reset Modes<\/strong><\/h2>\n\n\n\n<p>Let&#8217;s say we committed some changes and files, then to realize we committed them to the wrong branch or our commit is buggy so we want to rewind. Here&#8217;s where knowing about the git reset <strong>modes<\/strong> is useful.<\/p>\n\n\n\n<p>All git reset with mode will update the HEAD pointer. It has the following syntax&nbsp;<\/p>\n\n\n\n<p><code>git reset &lt;mode&gt; &lt;commit-optional&gt;<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The main modes are:<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><code>--soft<\/code>: Resets HEAD pointer and leaves the index and working directory untouched. So your HEAD will be reset and the other trees still showing the latest changes.<\/li><li><code>--mixed<\/code>: <strong>Default<\/strong> option. Resets the HEAD and index. This basically un-stages all your changes and leaves you before you did <code>git add<\/code>. <em>Note:<\/em> If you do git reset by itself without any options, it will be interpreted as <code>git reset --mixed<\/code>.<\/li><li><code>--hard<\/code>: <strong>Be careful with this one<\/strong>. Besides resetting HEAD, index, it also resets your working directory. So you could lose code written! This as any changes after current HEAD pointer (last commit) are discarded.<\/li><\/ul>\n\n\n\n<p>Other modes such as <code>--merge<\/code> and <code>--keep<\/code> can be read in the <a href=\"https:\/\/git-scm.com\/docs\/git-reset\" target=\"_blank\" rel=\"noopener\" rel=\"nofollow\">official documentation<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Useful <\/strong><strong>git reset<\/strong><strong> Tricks<\/strong><\/h2>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Rewinding a commit<\/strong><\/h4>\n\n\n\n<p>Remember that if we omit the mode  (git reset without any options) it will be interpreted as &#8211;mixed. <\/p>\n\n\n\n<p>Now if we just type<code> git reset HEAD<\/code> nothing will happen, but if we do <code>git reset HEAD~1<\/code> then our HEAD will now point to its previous commit.<\/p>\n\n\n\n<p>The following example continues from the previous one. &nbsp;Let\u2019s suppose we add new text to our sample file. Then we git add and commit. Then after we do git reset HEAD~1, all our changes are un-staged and on the previous commit.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"362\" height=\"118\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/90945697-0d1cce00-e3ec-11ea-935a-7f9378d219f0.png\" alt=\"\" class=\"wp-image-22458\" srcset=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/90945697-0d1cce00-e3ec-11ea-935a-7f9378d219f0.png 362w, https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/90945697-0d1cce00-e3ec-11ea-935a-7f9378d219f0-20x7.png 20w\" sizes=\"auto, (max-width: 362px) 100vw, 362px\" \/><\/figure>\n\n\n\n<p>This is a useful and fast way when we want to undo a commit!<\/p>\n\n\n\n<p><strong>Un-staging a specific file<\/strong><\/p>\n\n\n\n<p>Let&#8217;s say you added a file to the index with git add. We can remove that file just by doing:<\/p>\n\n\n\n<p><code>git reset HEAD &lt;file-name&gt;<\/code><\/p>\n\n\n\n<p><strong>Scenario: <em>I messed up all my code! Can I go back to when it was working?<\/em><\/strong><\/p>\n\n\n\n<p>If you want to throw away all local changes and go back to your previous commit your last resort is <code>git reset --hard<\/code>. <\/p>\n\n\n\n<p>Often if you break your code this could be your only option. If you know the commit hash you can <code>do git reset --hard &lt;commit&gt;<\/code>. But note this one will also affect any other commits after the specific commit (if any)!<\/p>\n\n\n\n<p><strong>Scenario: <em>This commit was supposed to be in a new branch!<\/em><\/strong><\/p>\n\n\n\n<p>This often happens, especially when you are starting to work in production. If this happens to you, no panic!<\/p>\n\n\n\n<p>What we need to do is basically create the new branch that has the state of the branch we need to rewind. Then we will reset the affected branch, and then we checkout to the new branch and do the commits there:<\/p>\n\n\n\n<p><code>git branch new-branch<\/code><\/p>\n\n\n\n<p><code>git reset HEAD~1 --hard<\/code><\/p>\n\n\n\n<p><code>git checkout new-branch<\/code><\/p>\n\n\n\n<p><strong>Lifesaver<\/strong> right!&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>One Last Word<\/strong><\/h2>\n\n\n\n<p>Be careful when doing <code>git reset --hard<\/code> and also when rewinding to a specific commit, especially in production code and when you are working with other developers. Often git revert is the safe way to make these changes. But that is a conversation for another time. Until then! \ud83d\udc4b\ud83c\udffc<\/p>\n","protected":false},"excerpt":{"rendered":"When you are working on a project by yourself or as part of a team, there might be instances when you want to undo a commit. The git reset command is one of the tools known to be a real lifesaver. Git's Tracking Mechanism Before going to git reset, we need to understand about the&hellip;","protected":false},"author":86,"featured_media":2041,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17286],"tags":[],"class_list":{"0":"post-22450","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-git"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Git","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Git Reset To The Rescue | Career Karma<\/title>\n<meta name=\"description\" content=\"Do you know about when to use git reset? Learn everything about this life-saver git command. Learn Git with CareerKarma.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/git-reset\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git Reset To The Rescue\" \/>\n<meta property=\"og:description\" content=\"Do you know about when to use git reset? Learn everything about this life-saver git command. Learn Git with CareerKarma.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/git-reset\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-11T13:48:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-29T20:36:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/05\/goran-ivos-307271-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"959\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Felipe Boh\u00f3rquez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Felipe Boh\u00f3rquez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-reset\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-reset\\\/\"},\"author\":{\"name\":\"Felipe Boh\u00f3rquez\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e2cbf72dcbfaf9e81a8b6a38c1bd4220\"},\"headline\":\"Git Reset To The Rescue\",\"datePublished\":\"2020-09-11T13:48:55+00:00\",\"dateModified\":\"2020-12-29T20:36:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-reset\\\/\"},\"wordCount\":759,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-reset\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/goran-ivos-307271-unsplash.jpg\",\"articleSection\":[\"Git\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-reset\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-reset\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-reset\\\/\",\"name\":\"Git Reset To The Rescue | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-reset\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-reset\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/goran-ivos-307271-unsplash.jpg\",\"datePublished\":\"2020-09-11T13:48:55+00:00\",\"dateModified\":\"2020-12-29T20:36:05+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e2cbf72dcbfaf9e81a8b6a38c1bd4220\"},\"description\":\"Do you know about when to use git reset? Learn everything about this life-saver git command. Learn Git with CareerKarma.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-reset\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-reset\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-reset\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/goran-ivos-307271-unsplash.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/goran-ivos-307271-unsplash.jpg\",\"width\":1200,\"height\":959,\"caption\":\"Laptop on top of desk\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-reset\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Git\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Git Reset To The Rescue\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e2cbf72dcbfaf9e81a8b6a38c1bd4220\",\"name\":\"Felipe Boh\u00f3rquez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/Screen-Shot-2020-08-17-at-11.10.42-AM-150x150.png\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/Screen-Shot-2020-08-17-at-11.10.42-AM-150x150.png\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/Screen-Shot-2020-08-17-at-11.10.42-AM-150x150.png\",\"caption\":\"Felipe Boh\u00f3rquez\"},\"description\":\"Felipe Boh\u00f3rquez is a Software Engineer and technical writer at Career Karma. He covers all things frontend and backend development.\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/author\\\/felipe-bohorquez\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Git Reset To The Rescue | Career Karma","description":"Do you know about when to use git reset? Learn everything about this life-saver git command. Learn Git with CareerKarma.","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:\/\/careerkarma.com\/blog\/git-reset\/","og_locale":"en_US","og_type":"article","og_title":"Git Reset To The Rescue","og_description":"Do you know about when to use git reset? Learn everything about this life-saver git command. Learn Git with CareerKarma.","og_url":"https:\/\/careerkarma.com\/blog\/git-reset\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-09-11T13:48:55+00:00","article_modified_time":"2020-12-29T20:36:05+00:00","og_image":[{"width":1200,"height":959,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/05\/goran-ivos-307271-unsplash.jpg","type":"image\/jpeg"}],"author":"Felipe Boh\u00f3rquez","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"Felipe Boh\u00f3rquez","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/git-reset\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/git-reset\/"},"author":{"name":"Felipe Boh\u00f3rquez","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e2cbf72dcbfaf9e81a8b6a38c1bd4220"},"headline":"Git Reset To The Rescue","datePublished":"2020-09-11T13:48:55+00:00","dateModified":"2020-12-29T20:36:05+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/git-reset\/"},"wordCount":759,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/git-reset\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/05\/goran-ivos-307271-unsplash.jpg","articleSection":["Git"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/git-reset\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/git-reset\/","url":"https:\/\/careerkarma.com\/blog\/git-reset\/","name":"Git Reset To The Rescue | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/git-reset\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/git-reset\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/05\/goran-ivos-307271-unsplash.jpg","datePublished":"2020-09-11T13:48:55+00:00","dateModified":"2020-12-29T20:36:05+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e2cbf72dcbfaf9e81a8b6a38c1bd4220"},"description":"Do you know about when to use git reset? Learn everything about this life-saver git command. Learn Git with CareerKarma.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/git-reset\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/git-reset\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/git-reset\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/05\/goran-ivos-307271-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/05\/goran-ivos-307271-unsplash.jpg","width":1200,"height":959,"caption":"Laptop on top of desk"},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/git-reset\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Git","item":"https:\/\/careerkarma.com\/blog\/git\/"},{"@type":"ListItem","position":3,"name":"Git Reset To The Rescue"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e2cbf72dcbfaf9e81a8b6a38c1bd4220","name":"Felipe Boh\u00f3rquez","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-17-at-11.10.42-AM-150x150.png","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-17-at-11.10.42-AM-150x150.png","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-17-at-11.10.42-AM-150x150.png","caption":"Felipe Boh\u00f3rquez"},"description":"Felipe Boh\u00f3rquez is a Software Engineer and technical writer at Career Karma. He covers all things frontend and backend development.","url":"https:\/\/careerkarma.com\/blog\/author\/felipe-bohorquez\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/22450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/86"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=22450"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/22450\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/2041"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=22450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=22450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=22450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}