{"id":68207,"date":"2021-02-04T10:59:08","date_gmt":"2021-02-04T15:59:08","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=68207"},"modified":"2021-11-23T17:03:15","modified_gmt":"2021-11-23T22:03:15","slug":"git-hooks","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/","title":{"rendered":"Git Hooks (and How They Work)"},"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\/09\/Git-Hooks-1-1024x538.png\" alt=\"\" class=\"wp-image-88615\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/09\/Git-Hooks-1-1024x538.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/09\/Git-Hooks-1-300x158.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/09\/Git-Hooks-1-768x403.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/09\/Git-Hooks-1.png 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n<div class=\"jumbotron\"><p>No matter if you're a developer, system administrator, or simply a fan of SSH and command line, InMotion's <a href=\"https:\/\/www.inmotionhosting.com\/cloud-vps\">Cloud Hosting plans<\/a> provide a fast, scalable environment that is budget-friendly.<\/p><\/div>\n\n\n<p>Git Hooks are basically scripts that you can trigger with a Git event. They come in both local and remote varieties. Local Git hooks include scripts that you can trigger before you commit. A good example of a remote hook might be a trigger that springs into action when you push to your <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/setting-up-your-remote-repository-with-git\/\" target=\"_blank\" rel=\"noopener\">remote repository<\/a>.<\/p>\n<div id=\"text-table-of-contents\">\n<ul>\n<li><a href=\"#git-hooks\">Where To Find Git Hooks<\/a><\/li>\n<li><a href=\"#local\">Local Hooks and a Sample Pre-commit Hook<\/a><\/li>\n<li><a href=\"#remote\">Remote Hooks and a Sample Post-receive Hook<\/a><\/li>\n<li><a href=\"#further-reading\">Continued Reading on Git<\/a><\/li>\n<\/ul>\n<\/div>\n<div id=\"outline-container-git-hooks\" class=\"outline-2\">\n<h2 id=\"git-hooks\">Where To Find Git Hooks<\/h2>\n<div id=\"text-git-hooks\" class=\"outline-text-2\">\n<p>Whenever you initialize a git repository with <code>git init<\/code> a <code>.git\/hooks<\/code> directory is created. Git comes with a few helpful examples loaded in this directory. These example scripts will run if you want to use them, but in most cases they simply provide a helpful template for how you can configure your own scripts.<\/p>\n<p>Before configuring your hooks, you should know the difference between exit codes 0 and non-zero. Exit codes can be used in scripts to indicate a stopping point or signal to halt execution. An exit code of 0 (zero) means that everything ran successfully, while a non-zero can indicate a problem or introduce alternate logic.<\/p>\n<p>As you\u2019re reading about and configuring your own git hooks, bear in mind that \u201cnon-zero status\u201d simply means that an alternate path will be taken to disrupt the event that triggered the hook.<\/p>\n<\/div>\n<\/div>\n<div id=\"outline-container-local\" class=\"outline-2\">\n<h2 id=\"local\">Local Hooks and a Sample Pre-commit Hook<\/h2>\n<div id=\"text-local\" class=\"outline-text-2\">\n<p>Local hooks, also known as \u201cclient-side\u201d hooks, run on your local repository. This means you can customize these local scripts for your environment without affecting any other contributors out in the web.<\/p>\n<p>Most common, you will see a \u201cpre-commit\u201d hook utilized on the local repository. This script will run before you are even prompted to provide a commit message. The pre-commit hook, ideal for testing, allows you to run scripts on your current commit, possibly saving you from committing errors to the repository.<\/p>\n<p>Once you have initialized a git repository locally, you can take a look at your hook samples by opening the <code>hooks<\/code> directory.<\/p>\n<p>From the repository working directory, type:<\/p>\n<pre id=\"org5d0bc15\" class=\"example\">cd .git\/hooks\n<\/pre>\n<p>Or, if you prefer to use the file manager in your operating system, make sure that the \u201chidden files\u201d are visible, then open the <code>.git<\/code> directory. You will see the <code>hooks<\/code> directory sitting right there waiting for you.<\/p>\n<p>Notice that all the scripts listed here end with a <code>.sample<\/code> extension. In order to make these scripts executable you must remove this sample extension and leave the hook as is.<\/p>\n<p>On the command line, you can use the <code>mv<\/code> command to rename these files. For example, using the <code>pre-commit.sample<\/code> file:<\/p>\n<pre id=\"org5ea6c59\" class=\"example\">mv pre-commit.sample pre-commit\n<\/pre>\n<p>Now if you try to run a commit, you will receive a code review. Maybe your code will not trigger any warnings, but if so you can start to see how powerful these hooks can be.<\/p>\n<\/div>\n<\/div>\n<div id=\"outline-container-remote\" class=\"outline-2\">\n<h2 id=\"remote\">Remote Hooks and a Sample Post-receive Hook<\/h2>\n<div id=\"text-remote\" class=\"outline-text-2\">\n<p>Remote hooks, also known as \u201cserver-side\u201d hooks (because they happen on a remote server), can be used to trigger actions at\u2014of course\u2014the server side of your Git project. Most Git projects have a remote repository on a server. This is how various users from different locations can contribute to the same project.<\/p>\n<p>Since these hooks are triggered at the remote location, they will affect all users (if there are other users besides yourself). So it is best to make sure that these scripts are secure and will not tamper with anyone else\u2019s workflow.<\/p>\n<p>A great way to use the server-side hooks is to trigger actions around a <code>git push<\/code>. For example, you can write a script that places your entire commit tree in a zipped archive with the version number appended to the file. You could use a \u201cpost-receive\u201d hook to trigger a git checkout, in effect <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/using-git-to-publish-files\/\" target=\"_blank\" rel=\"noopener\">publishing the files<\/a> to a different location on the server.<\/p>\n<\/div>\n<\/div>\n<div id=\"outline-container-further-reading\" class=\"outline-2\">\n<h2 id=\"further-reading\">Continued Reading on Git<\/h2>\n<div id=\"text-further-reading\" class=\"outline-text-2\">\n<p>You may also be interested in some follow-up reading:<\/p>\n<ul>\n<li><a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Customizing-Git-Git-Hooks\" target=\"_blank\" rel=\"noopener\">Complete git hook documentation<\/a><\/li>\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/git\/\" target=\"_blank\" rel=\"noopener noreferrer\">Learn git in 7 minutes<\/a><\/li>\n<\/ul>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Git Hooks are basically scripts that you can trigger with a Git event. They come in both local and remote varieties. Local Git hooks include scripts that you can trigger before you commit. A good example of a remote hook might be a trigger that springs into action when you push to your remote repository.<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/\"> 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":[4309],"tags":[],"class_list":["post-68207","post","type-post","status-publish","format-standard","hentry","category-git"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Git Hooks (and How They Work) | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Properly using git hooks can greatly optimize your git workflow and produce stunning results when working locally or with remote repositories.\" \/>\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\/website\/git\/git-hooks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git Hooks (and How They Work) | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Properly using git hooks can greatly optimize your git workflow and produce stunning results when working locally or with remote repositories.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/\" \/>\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-02-04T15:59:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-23T22:03:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/09\/Git-Hooks-1-1024x538.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\/website\/git\/git-hooks\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/\"},\"author\":{\"name\":\"Christopher Maiorana\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\"},\"headline\":\"Git Hooks (and How They Work)\",\"datePublished\":\"2021-02-04T15:59:08+00:00\",\"dateModified\":\"2021-11-23T22:03:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/\"},\"wordCount\":652,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/09\/Git-Hooks-1-1024x538.png\",\"articleSection\":[\"Git\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/\",\"name\":\"Git Hooks (and How They Work) | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/09\/Git-Hooks-1-1024x538.png\",\"datePublished\":\"2021-02-04T15:59:08+00:00\",\"dateModified\":\"2021-11-23T22:03:15+00:00\",\"description\":\"Properly using git hooks can greatly optimize your git workflow and produce stunning results when working locally or with remote repositories.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/09\/Git-Hooks-1.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/09\/Git-Hooks-1.png\",\"width\":1200,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Git Hooks (and How They Work)\"}]},{\"@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":"Git Hooks (and How They Work) | InMotion Hosting","description":"Properly using git hooks can greatly optimize your git workflow and produce stunning results when working locally or with remote repositories.","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\/website\/git\/git-hooks\/","og_locale":"en_US","og_type":"article","og_title":"Git Hooks (and How They Work) | InMotion Hosting","og_description":"Properly using git hooks can greatly optimize your git workflow and produce stunning results when working locally or with remote repositories.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2021-02-04T15:59:08+00:00","article_modified_time":"2021-11-23T22:03:15+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/09\/Git-Hooks-1-1024x538.png","type":"","width":"","height":""}],"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\/website\/git\/git-hooks\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/"},"author":{"name":"Christopher Maiorana","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f"},"headline":"Git Hooks (and How They Work)","datePublished":"2021-02-04T15:59:08+00:00","dateModified":"2021-11-23T22:03:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/"},"wordCount":652,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/09\/Git-Hooks-1-1024x538.png","articleSection":["Git"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/","name":"Git Hooks (and How They Work) | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/09\/Git-Hooks-1-1024x538.png","datePublished":"2021-02-04T15:59:08+00:00","dateModified":"2021-11-23T22:03:15+00:00","description":"Properly using git hooks can greatly optimize your git workflow and produce stunning results when working locally or with remote repositories.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/09\/Git-Hooks-1.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/09\/Git-Hooks-1.png","width":1200,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/git-hooks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Git Hooks (and How They Work)"}]},{"@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":4309,"name":"Git","slug":"git","link":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/68207","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=68207"}],"version-history":[{"count":10,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/68207\/revisions"}],"predecessor-version":[{"id":92475,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/68207\/revisions\/92475"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=68207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=68207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=68207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}