{"id":2877,"date":"2019-01-14T07:44:47","date_gmt":"2019-01-13T22:44:47","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=2877"},"modified":"2022-11-15T13:37:24","modified_gmt":"2022-11-15T04:37:24","slug":"git-rm%e3%81%97%e3%81%9f%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92git-rm%e3%81%a7%e5%89%8a%e9%99%a4","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/2877","title":{"rendered":"[git] \u30ef\u30fc\u30af\u304b\u3089\u524a\u9664\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092git rm\u3067\u4e00\u62ec\u524a\u9664\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u30ef\u30fc\u30af\u30c4\u30ea\u30fc\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u3084rm\u30b3\u30de\u30f3\u30c9\u3067\u524a\u9664\u3057\u305f\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u3092git\u306e\u8ffd\u8de1\u5bfe\u8c61\u304b\u3089\u3082\u4e00\u62ec\u3057\u3066\u524a\u9664\u3059\u308b\u65b9\u6cd5<\/p>\n<pre class=\"lang:sh decode:true \" >$ git rm `git ls-files --deleted`<\/pre>\n<p>\u4e0a\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u30d5\u30a1\u30a4\u30eb\u524a\u9664\u64cd\u4f5c\u304c\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\uff08\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\uff09\u306b\u767b\u9332\u3055\u308c\u308b\u3002<br \/>\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u306e\u7d50\u679c\u304c\uff2f\uff2b\u3067\u3042\u308c\u3070 git commit \u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<h3>\u88dc\u8db3<\/h3>\n<h4>1. \u30ef\u30fc\u30af\u30c4\u30ea\u30fc\u304b\u3089\u524a\u9664\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7\u306e\u53d6\u5f97<\/h4>\n<pre class=\"lang:sh decode:true \" >git ls-files --deleted<\/pre>\n<p>&nbsp;<\/p>\n<h4>2. \u5b9f\u884c\u7d50\u679c\u3092\u30b7\u30a7\u30eb\u306b\u5c55\u958b\u3059\u308b<\/h4>\n<p>\u30d0\u30c3\u30af\u30af\u30a9\u30fc\u30c8 <font size=\"+1\"><strong>&#096;<\/strong><\/font> \u3067\u5b9f\u884c\u30b3\u30de\u30f3\u30c9\u3092\u62ec\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ef\u30fc\u30af\u30c4\u30ea\u30fc\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u3084rm\u30b3\u30de\u30f3\u30c9\u3067\u524a\u9664\u3057\u305f\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u3092git\u306e\u8ffd\u8de1\u5bfe\u8c61\u304b\u3089\u3082\u4e00\u62ec\u3057\u3066\u524a\u9664\u3059\u308b\u65b9\u6cd5 $ git rm `git ls-files &#8211;deleted` \u4e0a\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u30d5\u30a1\u30a4\u30eb\u524a\u9664\u64cd\u4f5c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[2],"class_list":["post-2877","post","type-post","status-publish","format-standard","hentry","category-memo","tag-git"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=2877"}],"version-history":[{"count":12,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2877\/revisions"}],"predecessor-version":[{"id":5791,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2877\/revisions\/5791"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=2877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=2877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=2877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}