{"id":17614,"date":"2020-05-30T01:23:58","date_gmt":"2020-05-30T08:23:58","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=17614"},"modified":"2023-12-01T03:05:16","modified_gmt":"2023-12-01T11:05:16","slug":"git-branch","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/git-branch\/","title":{"rendered":"Git Branch"},"content":{"rendered":"\n<p>Branching is a feature in almost all modern version control systems. Branches allow developers to move away from the main version of their code and make changes to their code without updating the main version of the code.<br><\/p>\n\n\n\n<p>In other version control systems, branching can be a difficult process. Some version control systems ask that you create a new copy of your code, which can be laborious for larger projects. Git, on the other hand, has a simple branching feature that allows you to easily navigate between different branches.<br><\/p>\n\n\n\n<p>This tutorial will discuss, with examples, the basics of branching in Git and how you can use the git branch command. By the end of reading this tutorial, you\u2019ll be an expert at branching in Git.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Git Branches<\/h2>\n\n\n\n<p>Branches are an essential part of working with Git.<br><\/p>\n\n\n\n<p>In professional projects, branches are often used for every feature or fix that is being made. This is because branching allows a developer to work on a repository without affecting the main codebase, so the developer can work on a feature or fix a bug with others before it is pushed to the main copy of the project\u2019s code.<br><\/p>\n\n\n\n<p>This approach to software development reduces the chance that code containing errors is merged into the main version of a codebase.<br><\/p>\n\n\n\n<p>In Git, a branch is a new line inside a repository. This new line will include its own version of the codebase\u2019s code and will evolve independently from the main branch. In most codebases, this branch is referred to as the \u201cmaster branch\u201d.<br><\/p>\n\n\n\n<p>Because branches are independent from the master branch, they can be used to work on different features in a codebase in parallel. Then, when a change is ready to become part of the main codebase, the change can be merged into the master branch or the main version of the code.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Git Branch Commands<\/h2>\n\n\n\n<p>User-created branches are independent from the master branch. These branches have their own commit history, and when you push changes to the branch, those changes will only appear on the branch to which they were pushed.<br><\/p>\n\n\n\n<p>Think about branches as a way to create multiple versions of the same codebase. You could have one branch that includes the code for a new feature you\u2019re working on, and another branch which stores the updated version of a repo that solves an open issue.<br><\/p>\n\n\n\n<p>The git branch command is used to work with branches in Git. The command allows you to create, rename, and delete branches. You can also retrieve a list of branches using git branch.<br><\/p>\n\n\n\n<p>In addition, the git branch is commonly used in addition to the <a href=\"https:\/\/careerkarma.com\/blog\/git-checkout\">git checkout<\/a> and <a href=\"https:\/\/careerkarma.com\/blog\/git-merge\">git merge<\/a> commands, which are used to switch between versions of a codebase and to merge different versions of a codebase, respectively. We discuss these topics in their own tutorials.<br><\/p>\n\n\n\n<p>Now we know the basics of branching in Git, we can explore how to use the git branch command with its supported flags and parameters.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Retrieve a List of Branches<\/h2>\n\n\n\n<p>To retrieve a list of branches in a Git repository, you can use the git branch command. Here\u2019s the syntax for the git branch command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git branch<\/pre><\/div>\n\n\n\n<p>Here\u2019s an example output from this command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>* master\n* v0.9\n* v0.8<\/pre><\/div>\n\n\n\n<p>As you can see, the git branch command returns a list of the branches in our Git repository. Another way to write this command is to use git branch &#8211;list, which also returns a list of branches in a Git repository.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Create a Branch<\/h2>\n\n\n\n<p>Suppose we want to create a branch called \u201cv0.9.1\u201d in our codebase. We could do so using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git branch v0.9.1<\/pre><\/div>\n\n\n\n<p>This command creates a new branch with the name v0.9.1. When this command is run, your development environment will remain attached to the HEAD of the repo. So, if you want to see your new branch, you\u2019ll need to use the <a href=\"https:\/\/careerkarma.com\/blog\/git-checkout\">git checkout<\/a> command.<br><\/p>\n\n\n\n<p>When a new branch is created, the repository is not changed in any other way aside from the fact a new branch exists. The history of the repository will stay the same. This is because when you create a branch, Git only creates a pointer to the new branch.<br><\/p>\n\n\n\n<p>if you want to start committing code to your branch, you\u2019ll need to use the <a href=\"https:\/\/careerkarma.com\/blog\/git-checkout\">git checkout<\/a>, <a href=\"https:\/\/careerkarma.com\/blog\/git-add\">git add<\/a> and <a href=\"https:\/\/careerkarma.com\/blog\/git-commit\">git commit<\/a> commands.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Delete a Branch<\/h2>\n\n\n\n<p>To delete a branch in a Git repository, you can use the -d flag.<br><\/p>\n\n\n\n<p>Suppose we have decided that we want to delete the v0.9.1 branch from our code. Here\u2019s the command we would use to delete the branch:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git branch -d v0.9.1<\/pre><\/div>\n\n\n\n<p>This command deletes our branch. However, the -d flag performs a safe delete operation, which means if there are unmerged changes (changes on the branch that have not been merged into another branch), then the branch will not be deleted. This ensures that you don\u2019t lose access to a branch with code you want to merge by accident.<br><\/p>\n\n\n\n<p>If you want to force a branch to delete, even if it has pending unmerged changes, you can use the -D flag. This will permanently delete a branch. Here\u2019s the syntax for the -D flag:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git branch -D v0.9.1<\/pre><\/div>\n\n\n\n<p>After running this command, our branch has been deleted. The -D flag should only be used in cases where you are absolutely sure you want to delete a branch. This is because the -D flag shows no warnings when it is executed.<br><\/p>\n\n\n\n<p>Once you have executed the git branch -d\/-D command, the local copy of the branch will be deleted. However, the branch may still exist in the main copy of the repo, if your repo is stored remotely.<br><\/p>\n\n\n\n<p>If you want to delete the remote copy of the branch, you\u2019ll need to run another command. Suppose we want to tell our remote repository that the branch v0.9.1 should be deleted. We could do so using this command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git push origin :v0.9.1<\/pre><\/div>\n\n\n\n<p>The above command will instruct our remote repository to delete the v0.9.1 branch.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Rename a Branch<\/h2>\n\n\n\n<p>You can rename a Git branch using the -m flag.<br><\/p>\n\n\n\n<p>The -m flag renames the branch you are currently viewing. Suppose we want to rename the branch v0.9.2 (which we are currently viewing) to v1. We could do so using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git branch -m v1<\/pre><\/div>\n\n\n\n<p>This command renames the branch we are viewing to v1.<\/p>\n\n\n\n<iframe loading=\"lazy\" frameborder=\"0\" width=\"100%\" height=\"400px\" src=\"https:\/\/repl.it\/@careerkarma\/Git-Branch?lite=true\"><\/iframe>\n<br>\n<br>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The git branch command is used to create, rename, and delete branches. The command can also be used to retrieve a list of the branches that are associated with a git repo.<br><\/p>\n\n\n\n<p>However, if you want to commit code to a branch, you\u2019ll need to use commands such as git checkout, git add, and git commit, which are used to save changes to a codebase.<br><\/p>\n\n\n\n<p>This tutorial discussed, with examples, the basics of branching in Git and how to use the git branch command. You\u2019re now equipped with the knowledge you need to start branching code in Git like a professional developer!<\/p>\n","protected":false},"excerpt":{"rendered":"Branching is a feature in almost all modern version control systems. Branches allow developers to move away from the main version of their code and make changes to their code without updating the main version of the code. In other version control systems, branching can be a difficult process. Some version control systems ask that&hellip;","protected":false},"author":240,"featured_media":17615,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17286],"tags":[],"class_list":{"0":"post-17614","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":"","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 Branch: the most important part of version control<\/title>\n<meta name=\"description\" content=\"The git branch command allows you to create, rename, delete, and list branches in a Git repository. On Career Karma, learn how to use git branch.\" \/>\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-branch\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git Branch\" \/>\n<meta property=\"og:description\" content=\"The git branch command allows you to create, rename, delete, and list branches in a Git repository. On Career Karma, learn how to use git branch.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/git-branch\/\" \/>\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-05-30T08:23:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:05:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/computer-1185626_1920.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"679\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\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=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-branch\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-branch\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Git Branch\",\"datePublished\":\"2020-05-30T08:23:58+00:00\",\"dateModified\":\"2023-12-01T11:05:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-branch\\\/\"},\"wordCount\":1155,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-branch\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/computer-1185626_1920.jpg\",\"articleSection\":[\"Git\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-branch\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-branch\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-branch\\\/\",\"name\":\"Git Branch: the most important part of version control\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-branch\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-branch\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/computer-1185626_1920.jpg\",\"datePublished\":\"2020-05-30T08:23:58+00:00\",\"dateModified\":\"2023-12-01T11:05:16+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The git branch command allows you to create, rename, delete, and list branches in a Git repository. On Career Karma, learn how to use git branch.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-branch\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-branch\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-branch\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/computer-1185626_1920.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/computer-1185626_1920.jpg\",\"width\":1020,\"height\":679},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-branch\\\/#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 Branch\"}]},{\"@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\\\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/author\\\/jamesgallagher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Git Branch: the most important part of version control","description":"The git branch command allows you to create, rename, delete, and list branches in a Git repository. On Career Karma, learn how to use git branch.","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-branch\/","og_locale":"en_US","og_type":"article","og_title":"Git Branch","og_description":"The git branch command allows you to create, rename, delete, and list branches in a Git repository. On Career Karma, learn how to use git branch.","og_url":"https:\/\/careerkarma.com\/blog\/git-branch\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-05-30T08:23:58+00:00","article_modified_time":"2023-12-01T11:05:16+00:00","og_image":[{"width":1020,"height":679,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/computer-1185626_1920.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/git-branch\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/git-branch\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Git Branch","datePublished":"2020-05-30T08:23:58+00:00","dateModified":"2023-12-01T11:05:16+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/git-branch\/"},"wordCount":1155,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/git-branch\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/computer-1185626_1920.jpg","articleSection":["Git"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/git-branch\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/git-branch\/","url":"https:\/\/careerkarma.com\/blog\/git-branch\/","name":"Git Branch: the most important part of version control","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/git-branch\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/git-branch\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/computer-1185626_1920.jpg","datePublished":"2020-05-30T08:23:58+00:00","dateModified":"2023-12-01T11:05:16+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The git branch command allows you to create, rename, delete, and list branches in a Git repository. On Career Karma, learn how to use git branch.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/git-branch\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/git-branch\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/git-branch\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/computer-1185626_1920.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/computer-1185626_1920.jpg","width":1020,"height":679},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/git-branch\/#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 Branch"}]},{"@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\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/17614","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\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=17614"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/17614\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/17615"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=17614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=17614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=17614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}