{"id":26883,"date":"2015-01-21T20:41:39","date_gmt":"2015-01-21T11:41:39","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=26883"},"modified":"2015-01-21T20:41:39","modified_gmt":"2015-01-21T11:41:39","slug":"git-bash-here","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/git-bash-here\/","title":{"rendered":"\u3010Tips\u3011\u300cGit Bash Here\u300d\u3067\u30b3\u30de\u30f3\u30c9\u5c65\u6b74\u3092\u8a18\u61b6\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2015\/01\/I2015-01-21_200738.png\" alt=\"2015 01 21 200738\" title=\"2015-01-21_200738.png\" border=\"0\" width=\"546\" height=\"278\" \/><\/p>\n<p>Windows\u7528\u306eGit\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u300c<a href=\"https:\/\/msysgit.github.io\/\">Git for Windows<\/a>\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u306e\u30e1\u30cb\u30e5\u30fc\u306b\u300c<span class=\"mybold\">Git Bash Here<\/span>\u300d\u3068\u3044\u3046\u30e1\u30cb\u30e5\u30fc\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3063\u3053\u308c\u306f\u6587\u5b57\u901a\u308a\u6307\u5b9a\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u30ab\u30ec\u30f3\u30c8\u30d5\u30a9\u30eb\u30c0\u3068\u3057\u3066\u300cGit Bash\u300d(git\u7528\u306ebash\u30d7\u30ed\u30f3\u30d7\u30c8)\u3092\u8d77\u52d5\u3059\u308b\u30e1\u30cb\u30e5\u30fc\u3067\u3059\u3002<\/p>\n<p>\u4fbf\u5229\u306b\u4f7f\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u6700\u8fd1bash\u304c\u30b3\u30de\u30f3\u30c9\u5c65\u6b74\u3092\u899a\u3048\u3066\u304f\u308c\u306a\u3044\u306e\u304c\u4e0d\u6e80\u306b\u601d\u3048\u3066\u304d\u307e\u3057\u305f\u3002\u524d\u56de\u4f55\u3092\u5b9f\u884c\u3057\u305f\u306e\u304b\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u308c\u305f\u3089\u3001git\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u5909\u306a\u72b6\u614b\u306b\u306a\u3063\u305f\u3068\u304d\u3001\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u5f79\u7acb\u3064\u306f\u305a\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3053\u306eGit Bash Here\u30b3\u30de\u30f3\u30c9\u5c65\u6b74\u3092\u8a18\u61b6\u3055\u305b\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h3>PROMPT_COMMAND\u3092\u4f7f\u3046<\/h3>\n<p>\u691c\u7d22\u3057\u3066\u307f\u308b\u3068<a href=\"http:\/\/stackoverflow.com\/questions\/10488498\/bash-history-does-not-update-in-git-for-windows-git-bash\">Stack Overflow<\/a>\u3067\u7b54\u3048\u3092\u767a\u898b\u3057\u307e\u3057\u305f\u3002~\/.bash_profile(Windows\u306e\u5834\u5408<span class=\"mybold\">c:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d\\.bash_profile<\/span>)\u306b\u4ee5\u4e0b\u306e\u6587\u5b57\u5217\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3088\u3044\u3088\u3046\u3067\u3059(.bash_profile\u304c\u306a\u3051\u308c\u3070\u4f5c\u308a\u307e\u3059)\u3002<\/p>\n<pre>\nPROMPT_COMMAND='history -a'\n<\/pre>\n<p>\u305d\u3046\u3059\u308b\u3068Git Bash Here\u3067bash\u3092\u8d77\u52d5\u3057\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3054\u3068\u306b\u5c65\u6b74\u304c\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2015\/01\/I2015-01-21_200250.png\" alt=\"2015 01 21 200250\" title=\"2015-01-21_200250.png\" border=\"0\" width=\"546\" height=\"367\" \/><\/p>\n<p>history\u30b3\u30de\u30f3\u30c9\u3067\u4e00\u89a7\u3067\u304d\u308b\u307b\u304b\u3001CTRL-P\u3067\u5c65\u6b74\u3092\u9061\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u5c65\u6b74\u306f\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305f\u3068\u3048Windows\u3092\u518d\u8d77\u52d5\u3057\u3066\u3082\u6b8b\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>PROMPT_COMMAND\u3063\u3066\u4f55?<\/h3>\n<p>PROMPT_COMMAND\u306f\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u5f8c\u306b\u5b9f\u884c\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\u3059\u308b\u30b7\u30a7\u30eb\u5909\u6570\u3067\u3059\u3002history -a\u306f\u4e00\u500b\u524d\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5c65\u6b74\u30d5\u30a1\u30a4\u30eb(.bash_history)\u306b\u8a18\u9332\u3059\u308b\u30b3\u30de\u30f3\u30c9\u306a\u306e\u3067\u2026\u300cPROMPT_COMMAND='history -a'\u300d\u3067\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3054\u3068\u306b.bash_history\u306b\u30b3\u30de\u30f3\u30c9\u5c65\u6b74\u304c\u4fdd\u5b58\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2015\/01\/I2015-01-21_200840.png\" alt=\"2015 01 21 200840\" title=\"2015-01-21_200840.png\" border=\"0\" width=\"546\" height=\"312\" \/><\/p>\n<p>\u5c65\u6b74\u30d5\u30a1\u30a4\u30eb\u306f<span class=\"mybold\">c:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d\\.bash_history<\/span>\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u666e\u6bb5zsh\u3092\u4f7f\u3063\u3066\u3044\u3066\u5c65\u6b74\u304c\u3042\u308b\u306e\u304c\u5f53\u305f\u308a\u524d\u306a\u74b0\u5883\u3060\u3063\u305f\u306e\u3067\u3001\u3053\u308c\u3067\u3060\u3044\u3076\u697d\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u5c65\u6b74\u3092\u4f7f\u3044\u3053\u306a\u3057\u3066\u4f5c\u696d\u52b9\u7387\u3092\u9ad8\u3081\u3066\u3044\u304d\u305f\u3044\u65b9\u306f\u8a2d\u5b9a\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows\u7528\u306eGit\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u300cGit for Windows\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u306e\u30e1\u30cb\u30e5\u30fc\u306b\u300cGit Bash Here\u300d\u3068\u3044\u3046\u30e1\u30cb\u30e5\u30fc\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002 \u3063\u3053\u308c\u306f\u6587\u5b57\u901a\u308a\u6307\u5b9a\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u30ab\u30ec\u30f3 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":26880,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3,75],"tags":[1360,159],"class_list":["post-26883","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows","category-software","tag-bash","tag-git"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/26883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=26883"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/26883\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/26880"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=26883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=26883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=26883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}