{"id":981,"date":"2010-06-29T14:57:07","date_gmt":"2010-06-29T19:57:07","guid":{"rendered":"http:\/\/bitpost.com\/news\/?p=981"},"modified":"2011-04-06T19:06:01","modified_gmt":"2011-04-07T00:06:01","slug":"getting-editing-to-work-in-msysgit","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/","title":{"rendered":"Getting editing to work in msysgit"},"content":{"rendered":"<p>I love the flexibilty that git provides, and the way it fits into distributed development.\u00a0 That&#8217;s the only reason I&#8217;ve been able to tolerate the hackery that is known as msysgit, the &#8220;official&#8221; Git release for Windows.<\/p>\n<p>msysgit basically dumps an entire linux distribution on your Windows box when you install &#8211; ported versions of perl, vim, bash, it&#8217;s all there, just to wipe msysgit&#8217;s butt.\u00a0 What a mess.\u00a0 Imagine if every port was done this way.\u00a0 But we&#8217;re stuck with it for now, so let&#8217;s get it working.\u00a0 Which.\u00a0 Isn&#8217;t.\u00a0 Easy.\u00a0 Especially when it comes to setting up an editor for commit messages when using a batch file script.<\/p>\n<p>There are alternatives.\u00a0 You can right-click on a folder and run a &#8220;Git Bash&#8221; from that location, which is hacked together to work well enough.\u00a0 VIM will kick in to let you edit your commit messages.\u00a0 And there are writeups on getting Windows Powershell to get along with msysgit.\u00a0 But I want to use git from simple Windows batch files.<\/p>\n<p>To do so, I had to do the following:<\/p>\n<ul>\n<li>Install notepad++, a nice reliable simple Windows editor.<\/li>\n<li>Set up a batch file to run notepad++ &#8211; make sure that the batch file does not have any spaces in the path to it &#8211; I named mine [c:\\short\\npp.bat]:\n<pre><code>#!\/bin\/sh\r\n\"C:\/Michae~1\/System~1\/npp\/notepad++.exe\" -multiInst \"$*\"<\/code><\/pre>\n<\/li>\n<li>Note that I used short names in the notepad++ path to avoid spaces.\u00a0 I also found that a single quote in the path will screw up msysgit.<\/li>\n<li>Now in a batch file, you should be able to set EDITOR to use it:\n<pre><code>set EDITOR=C:\/short\/npp.bat\r\ngit commit -a<\/code><\/pre>\n<\/li>\n<li>You can now set the editor up for use in the msysgit bash prompt as follows, it doesn&#8217;t seem to interfere with the batch setup (for SOME strange reason):\n<pre><code>git config --global core.editor C:\/short\/npp.bat<\/code><\/pre>\n<\/li>\n<\/ul>\n<p>Without ALL of these steps, it just won&#8217;t work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I love the flexibilty that git provides, and the way it fits into distributed development.\u00a0 That&#8217;s the only reason I&#8217;ve been able to tolerate the hackery that is known as msysgit, the &#8220;official&#8221; Git release for Windows. msysgit basically dumps an entire linux distribution on your Windows box when you install &#8211; ported versions of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[10],"tags":[203,60],"class_list":["post-981","post","type-post","status-publish","format-standard","hentry","category-tricks-tips-tools","tag-git","tag-msysgit"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"I love the flexibilty that git provides, and the way it fits into distributed development. That&#039;s the only reason I&#039;ve been able to tolerate the hackery that is known as msysgit, the &quot;official&quot; Git release for Windows. msysgit basically dumps an entire linux distribution on your Windows box when you install - ported versions of\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"m\"\/>\n\t<meta name=\"keywords\" content=\"tricks tips tools\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"bitpost.com\/news | Note to self\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Getting editing to work in msysgit | bitpost.com\/news\" \/>\n\t\t<meta property=\"og:description\" content=\"I love the flexibilty that git provides, and the way it fits into distributed development. That&#039;s the only reason I&#039;ve been able to tolerate the hackery that is known as msysgit, the &quot;official&quot; Git release for Windows. msysgit basically dumps an entire linux distribution on your Windows box when you install - ported versions of\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2010-06-29T19:57:07+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2011-04-07T00:06:01+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Getting editing to work in msysgit | bitpost.com\/news\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I love the flexibilty that git provides, and the way it fits into distributed development. That&#039;s the only reason I&#039;ve been able to tolerate the hackery that is known as msysgit, the &quot;official&quot; Git release for Windows. msysgit basically dumps an entire linux distribution on your Windows box when you install - ported versions of\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2010\\\/getting-editing-to-work-in-msysgit\\\/#article\",\"name\":\"Getting editing to work in msysgit | bitpost.com\\\/news\",\"headline\":\"Getting editing to work in msysgit\",\"author\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/author\\\/m\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2010\\\/getting-editing-to-work-in-msysgit\\\/#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg\",\"width\":96,\"height\":96,\"caption\":\"m\"},\"datePublished\":\"2010-06-29T14:57:07-04:00\",\"dateModified\":\"2011-04-06T19:06:01-04:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2010\\\/getting-editing-to-work-in-msysgit\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2010\\\/getting-editing-to-work-in-msysgit\\\/#webpage\"},\"articleSection\":\"Tricks Tips Tools, git, msysgit\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2010\\\/getting-editing-to-work-in-msysgit\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bitpost.com\\\/news\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/tricks-tips-tools\\\/#listItem\",\"name\":\"Tricks Tips Tools\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/tricks-tips-tools\\\/#listItem\",\"position\":2,\"name\":\"Tricks Tips Tools\",\"item\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/tricks-tips-tools\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2010\\\/getting-editing-to-work-in-msysgit\\\/#listItem\",\"name\":\"Getting editing to work in msysgit\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2010\\\/getting-editing-to-work-in-msysgit\\\/#listItem\",\"position\":3,\"name\":\"Getting editing to work in msysgit\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/tricks-tips-tools\\\/#listItem\",\"name\":\"Tricks Tips Tools\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/#person\",\"name\":\"m\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2010\\\/getting-editing-to-work-in-msysgit\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg\",\"width\":96,\"height\":96,\"caption\":\"m\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/author\\\/m\\\/#author\",\"url\":\"https:\\\/\\\/bitpost.com\\\/news\\\/author\\\/m\\\/\",\"name\":\"m\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2010\\\/getting-editing-to-work-in-msysgit\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg\",\"width\":96,\"height\":96,\"caption\":\"m\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2010\\\/getting-editing-to-work-in-msysgit\\\/#webpage\",\"url\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2010\\\/getting-editing-to-work-in-msysgit\\\/\",\"name\":\"Getting editing to work in msysgit | bitpost.com\\\/news\",\"description\":\"I love the flexibilty that git provides, and the way it fits into distributed development. That's the only reason I've been able to tolerate the hackery that is known as msysgit, the \\\"official\\\" Git release for Windows. msysgit basically dumps an entire linux distribution on your Windows box when you install - ported versions of\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2010\\\/getting-editing-to-work-in-msysgit\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/author\\\/m\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/author\\\/m\\\/#author\"},\"datePublished\":\"2010-06-29T14:57:07-04:00\",\"dateModified\":\"2011-04-06T19:06:01-04:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/#website\",\"url\":\"https:\\\/\\\/bitpost.com\\\/news\\\/\",\"name\":\"bitpost.com\\\/news\",\"description\":\"Note to self\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Getting editing to work in msysgit | bitpost.com\/news","description":"I love the flexibilty that git provides, and the way it fits into distributed development. That's the only reason I've been able to tolerate the hackery that is known as msysgit, the \"official\" Git release for Windows. msysgit basically dumps an entire linux distribution on your Windows box when you install - ported versions of","canonical_url":"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/","robots":"max-image-preview:large","keywords":"tricks tips tools","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/#article","name":"Getting editing to work in msysgit | bitpost.com\/news","headline":"Getting editing to work in msysgit","author":{"@id":"https:\/\/bitpost.com\/news\/author\/m\/#author"},"publisher":{"@id":"https:\/\/bitpost.com\/news\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg","width":96,"height":96,"caption":"m"},"datePublished":"2010-06-29T14:57:07-04:00","dateModified":"2011-04-06T19:06:01-04:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/#webpage"},"isPartOf":{"@id":"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/#webpage"},"articleSection":"Tricks Tips Tools, git, msysgit"},{"@type":"BreadcrumbList","@id":"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news#listItem","position":1,"name":"Home","item":"https:\/\/bitpost.com\/news","nextItem":{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/category\/tricks-tips-tools\/#listItem","name":"Tricks Tips Tools"}},{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/category\/tricks-tips-tools\/#listItem","position":2,"name":"Tricks Tips Tools","item":"https:\/\/bitpost.com\/news\/category\/tricks-tips-tools\/","nextItem":{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/#listItem","name":"Getting editing to work in msysgit"},"previousItem":{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/#listItem","position":3,"name":"Getting editing to work in msysgit","previousItem":{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/category\/tricks-tips-tools\/#listItem","name":"Tricks Tips Tools"}}]},{"@type":"Person","@id":"https:\/\/bitpost.com\/news\/#person","name":"m","image":{"@type":"ImageObject","@id":"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg","width":96,"height":96,"caption":"m"}},{"@type":"Person","@id":"https:\/\/bitpost.com\/news\/author\/m\/#author","url":"https:\/\/bitpost.com\/news\/author\/m\/","name":"m","image":{"@type":"ImageObject","@id":"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg","width":96,"height":96,"caption":"m"}},{"@type":"WebPage","@id":"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/#webpage","url":"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/","name":"Getting editing to work in msysgit | bitpost.com\/news","description":"I love the flexibilty that git provides, and the way it fits into distributed development. That's the only reason I've been able to tolerate the hackery that is known as msysgit, the \"official\" Git release for Windows. msysgit basically dumps an entire linux distribution on your Windows box when you install - ported versions of","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/bitpost.com\/news\/#website"},"breadcrumb":{"@id":"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/#breadcrumblist"},"author":{"@id":"https:\/\/bitpost.com\/news\/author\/m\/#author"},"creator":{"@id":"https:\/\/bitpost.com\/news\/author\/m\/#author"},"datePublished":"2010-06-29T14:57:07-04:00","dateModified":"2011-04-06T19:06:01-04:00"},{"@type":"WebSite","@id":"https:\/\/bitpost.com\/news\/#website","url":"https:\/\/bitpost.com\/news\/","name":"bitpost.com\/news","description":"Note to self","inLanguage":"en-US","publisher":{"@id":"https:\/\/bitpost.com\/news\/#person"}}]},"og:locale":"en_US","og:site_name":"bitpost.com\/news | Note to self","og:type":"article","og:title":"Getting editing to work in msysgit | bitpost.com\/news","og:description":"I love the flexibilty that git provides, and the way it fits into distributed development. That's the only reason I've been able to tolerate the hackery that is known as msysgit, the &quot;official&quot; Git release for Windows. msysgit basically dumps an entire linux distribution on your Windows box when you install - ported versions of","og:url":"https:\/\/bitpost.com\/news\/2010\/getting-editing-to-work-in-msysgit\/","article:published_time":"2010-06-29T19:57:07+00:00","article:modified_time":"2011-04-07T00:06:01+00:00","twitter:card":"summary","twitter:title":"Getting editing to work in msysgit | bitpost.com\/news","twitter:description":"I love the flexibilty that git provides, and the way it fits into distributed development. That's the only reason I've been able to tolerate the hackery that is known as msysgit, the &quot;official&quot; Git release for Windows. msysgit basically dumps an entire linux distribution on your Windows box when you install - ported versions of"},"aioseo_meta_data":{"post_id":"981","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-13 19:49:25","updated":"2025-08-17 19:07:18","seo_analyzer_scan_date":null},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-fP","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=981"}],"version-history":[{"count":5,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/981\/revisions"}],"predecessor-version":[{"id":1129,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/981\/revisions\/1129"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}