{"id":87432,"date":"2021-08-30T09:31:35","date_gmt":"2021-08-30T13:31:35","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=87432"},"modified":"2021-10-26T13:26:50","modified_gmt":"2021-10-26T17:26:50","slug":"git-branch-magit","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/","title":{"rendered":"Create and Checkout a Git Branch in Emacs with Magit"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/Create-and-Checkout-a-Git-Branch-in-Emacs-with-Magit-1-1-1024x538.png\" alt=\"\" class=\"wp-image-87436\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/Create-and-Checkout-a-Git-Branch-in-Emacs-with-Magit-1-1-1024x538.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/Create-and-Checkout-a-Git-Branch-in-Emacs-with-Magit-1-1-300x158.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/Create-and-Checkout-a-Git-Branch-in-Emacs-with-Magit-1-1-768x403.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/Create-and-Checkout-a-Git-Branch-in-Emacs-with-Magit-1-1.png 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p> As you probably are already aware, Magit for Emacs is Git magic.  Magit works inside of your Emacs buffer to bring all of the power of Git to you without ever having to leave Emacs.  In this article, you will learn how to do a Git branch and merge your branches in Magit. <\/p>\n\n\n\n<p class=\"alert alert-info\">If you are not familiar with the Git branching process in standard operation, you should check out our full guide on the <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/using-branches-in-git\/\">basics of Git branches<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#git-commands\">Using Git Commands In Magit<\/a><\/li><li><a href=\"#create-git-branch\">Creating a New Branch<\/a><\/li><li><a href=\"#checkout\">Checkout to the New Branch<\/a><\/li><li><a href=\"#merge-branch-with-master\">Merge The New Branch With Master<\/a><\/li><\/ul>\n\n\n\n<p> Branching in Git is incredibly powerful and flexible.  You can create as many branches as you want.  You can iterate on your files, completely change anything you want in the project without affecting any other branches or the project itself.  You can leave your changes in your separate branch forever, or you can \u201cmerge\u201d or \u201crebase\u201d your changes onto the master branch. <\/p>\n\n\n<div class=\"jumbotron\">\r\n<p>Don't ruin the game with lag! Get a server that offers the best gaming experience, performance, and processing power with <a href=\"https:\/\/www.inmotionhosting.com\/game-server-hosting\">Bare Metal Hosting<\/a>!<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>Top-Tier Performance    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>Perfect for Gaming    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>Customizable    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>Dedicated Resources<\/p>\r\n<p><a class=\"btn btn-primary btn-lg\" href=\"https:\/\/www.inmotionhosting.com\/game-server-hosting\">Game Server Hosting<\/a><\/p>\r\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"git-commands\">Using Git Commands In Magit<\/h2>\n\n\n\n<p>\nMany of the commands you would run in Git, whether on command line or in a Git GUI application, are available at the click of a key command in Magit.\n<\/p>\n\n\n\n<p>\nIn this case, we will be using the branching actions, which are bound to the <code>b<\/code> key.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-git-branch\">Creating a New Git Branch<\/h2>\n\n\n\n<p> A branch is basically a divergent path from another reference point in your Git project history.  This means you are not always required to branch from wherever the branch is pointing.  You can branch from wherever the <code>HEAD<\/code> reference marker is pointing, which is most often aimed at master \u2014  but not necessarily so.  You can also branch from other branches. <\/p>\n\n\n\n<p>\nBut for the sake of simplicity, in this tutorial we will create a new branch from the master branch.\n<\/p>\n\n\n\n<p>\nFirst, create your new branch.  From with the project working directory, launch Magit with <code>C-x g<\/code>.  Press the <code>b<\/code> key to open the branch options.  Press <code>c<\/code> to create a new branch.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"checkout\">Checkout to the New Branch<\/h2>\n\n\n\n<p>\nNow that you have created and named your new branch, you will notice that you are still on the master branch.  To checkout your new branch, you will use the <code>b<\/code> key to open branching options and press <code>b<\/code> again to select the branch you want to checkout.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"merge-branch-with-master\">Merge The New Branch With Master<\/h2>\n\n\n\n<p>\nYou have a few different options when it comes to merging the divergent branch into master.  But before merging, remember to checkout the branch you want to merge your divergent branch into.  For example,  if you want to merge the divergent branch into master then first checkout master before attempting a merge.\n<\/p>\n\n\n\n<p>\nPress the <code>m<\/code> key to open your merging options.  Here are the merging options:\n<\/p>\n\n\n\n<ul class=\"org-ul wp-block-list\"><li><code>m<\/code> A basic merge will bring all changes and commits on the divergent branch into master.<\/li><li><code>e<\/code> Creates a commit for the merge but allows you to edit the message.<\/li><li><code>n<\/code> Merge content but don\u2019t create a commit.<\/li><li><code>a<\/code> Absorb the branch, brings in all changes and commits and deletes the divergent branch.  A nice way to keep everything clean.<\/li><\/ul>\n\n\n\n<p> In most cases, the <code>m<\/code> option for a basic merge that brings in all the commits and history of the other branch is probably what you want, but you should test out all of them and see which one works best for your workflow. <\/p>\n\n\n<div class=\"jumbotron\">\r\n<p>If you don\u2019t need cPanel, don't pay for it. Only pay for what you need with our scalable <a href=\"https:\/\/www.inmotionhosting.com\/cloud-vps\">Cloud VPS Hosting<\/a>.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>CentOS, Debian, or Ubuntu    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>No Bloatware    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>SSH and Root Access<\/p>\r\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>As you probably are already aware, Magit for Emacs is Git magic. Magit works inside of your Emacs buffer to bring all of the power of Git to you without ever having to leave Emacs. In this article, you will learn how to do a Git branch and merge your branches in Magit. If you<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/\"> Read More ><\/a><\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4396],"tags":[],"class_list":["post-87432","post","type-post","status-publish","format-standard","hentry","category-emacs"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Create and Checkout a Git Branch in Emacs with Magit<\/title>\n<meta name=\"description\" content=\"In this article, learn how to set up a Git branch and merge your divergent branches back into master using only Emacs and the Magit package.\" \/>\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.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create and Checkout a Git Branch in Emacs with Magit\" \/>\n<meta property=\"og:description\" content=\"In this article, learn how to set up a Git branch and merge your divergent branches back into master using only Emacs and the Magit package.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-30T13:31:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-26T17:26:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/Create-and-Checkout-a-Git-Branch-in-Emacs-with-Magit-1-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Christopher Maiorana\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christopher Maiorana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/\"},\"author\":{\"name\":\"Christopher Maiorana\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\"},\"headline\":\"Create and Checkout a Git Branch in Emacs with Magit\",\"datePublished\":\"2021-08-30T13:31:35+00:00\",\"dateModified\":\"2021-10-26T17:26:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/\"},\"wordCount\":563,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/Create-and-Checkout-a-Git-Branch-in-Emacs-with-Magit-1-1-1024x538.png\",\"articleSection\":[\"Emacs\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/\",\"name\":\"Create and Checkout a Git Branch in Emacs with Magit\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/Create-and-Checkout-a-Git-Branch-in-Emacs-with-Magit-1-1-1024x538.png\",\"datePublished\":\"2021-08-30T13:31:35+00:00\",\"dateModified\":\"2021-10-26T17:26:50+00:00\",\"description\":\"In this article, learn how to set up a Git branch and merge your divergent branches back into master using only Emacs and the Magit package.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/Create-and-Checkout-a-Git-Branch-in-Emacs-with-Magit-1-1.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/Create-and-Checkout-a-Git-Branch-in-Emacs-with-Magit-1-1.png\",\"width\":1200,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create and Checkout a Git Branch in Emacs with Magit\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\",\"name\":\"Christopher Maiorana\",\"description\":\"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create and Checkout a Git Branch in Emacs with Magit","description":"In this article, learn how to set up a Git branch and merge your divergent branches back into master using only Emacs and the Magit package.","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.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/","og_locale":"en_US","og_type":"article","og_title":"Create and Checkout a Git Branch in Emacs with Magit","og_description":"In this article, learn how to set up a Git branch and merge your divergent branches back into master using only Emacs and the Magit package.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2021-08-30T13:31:35+00:00","article_modified_time":"2021-10-26T17:26:50+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/Create-and-Checkout-a-Git-Branch-in-Emacs-with-Magit-1-1.png","type":"image\/png"}],"author":"Christopher Maiorana","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Christopher Maiorana","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/"},"author":{"name":"Christopher Maiorana","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f"},"headline":"Create and Checkout a Git Branch in Emacs with Magit","datePublished":"2021-08-30T13:31:35+00:00","dateModified":"2021-10-26T17:26:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/"},"wordCount":563,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/Create-and-Checkout-a-Git-Branch-in-Emacs-with-Magit-1-1-1024x538.png","articleSection":["Emacs"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/","name":"Create and Checkout a Git Branch in Emacs with Magit","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/Create-and-Checkout-a-Git-Branch-in-Emacs-with-Magit-1-1-1024x538.png","datePublished":"2021-08-30T13:31:35+00:00","dateModified":"2021-10-26T17:26:50+00:00","description":"In this article, learn how to set up a Git branch and merge your divergent branches back into master using only Emacs and the Magit package.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/Create-and-Checkout-a-Git-Branch-in-Emacs-with-Magit-1-1.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/Create-and-Checkout-a-Git-Branch-in-Emacs-with-Magit-1-1.png","width":1200,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/git-branch-magit\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Create and Checkout a Git Branch in Emacs with Magit"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f","name":"Christopher Maiorana","description":"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.","sameAs":["https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4396,"name":"Emacs","slug":"emacs","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/emacs\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/87432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=87432"}],"version-history":[{"count":5,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/87432\/revisions"}],"predecessor-version":[{"id":90296,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/87432\/revisions\/90296"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=87432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=87432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=87432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}