{"id":2318,"date":"2017-07-21T21:20:01","date_gmt":"2017-07-21T12:20:01","guid":{"rendered":"http:\/\/codaholic.org\/?p=2318"},"modified":"2020-08-14T22:58:06","modified_gmt":"2020-08-14T13:58:06","slug":"git-commit-amend-%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b%e3%81%a8-error-there-was-a-problem-with-the-editor-vi-%e3%81%a8%e3%81%84%e3%81%86%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%8c%e5%87%ba","status":"publish","type":"post","link":"https:\/\/codaholic.org\/?p=2318","title":{"rendered":"git commit &#8211;amend \u3092\u5b9f\u884c\u3059\u308b\u3068 error: There was a problem with the editor &#8216;vi&#8217;. \u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u306e\u5bfe\u51e6\u65b9\u6cd5"},"content":{"rendered":"<p><code>git commit --amend --author=\"xxxxxx &lt;xxx@example.com&gt;\"<\/code> \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u306b\u3001\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3001\u671f\u5f85\u3057\u305f\u52d5\u4f5c\u304c\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<pre><code>\nerror: There was a problem with the editor 'vi'.\nPlease supply the message using either -m or -F option.\n<\/code><\/pre>\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u306f\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u89e3\u6d88\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<pre><code>git config --global core.editor \/usr\/bin\/vim\n<\/code><\/pre>\n<p>git \u3067\u5229\u7528\u3059\u308b\u30a8\u30c7\u30a3\u30bf\u30fc\u304c Vim \u3067\u306f\u306a\u304f\u3001Vi \u3068\u306a\u3063\u3066\u3044\u305f\u3053\u3068\u304c\u539f\u56e0\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>git commit &#8211;amend &#8211;author=&#8221;xxxxxx &lt;xxx@example.com&gt;&#8221; \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u306b\u3001\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3001\u671f\u5f85\u3057\u305f\u52d5\u4f5c\u304c\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3067\u3057 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[292],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8gd1W-Bo","_links":{"self":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/2318"}],"collection":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2318"}],"version-history":[{"count":8,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/2318\/revisions"}],"predecessor-version":[{"id":2351,"href":"https:\/\/codaholic.org\/index.php?rest_route=\/wp\/v2\/posts\/2318\/revisions\/2351"}],"wp:attachment":[{"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codaholic.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}