{"id":1283,"date":"2015-05-11T17:01:51","date_gmt":"2015-05-11T08:01:51","guid":{"rendered":"http:\/\/43.203.250.216\/?p=1283"},"modified":"2020-09-11T12:17:56","modified_gmt":"2020-09-11T03:17:56","slug":"tip-git%ec%97%90%ec%84%9c-%ec%82%ad%ec%a0%9c%ed%95%9c-file%eb%93%a4%ec%9d%84-%ed%95%9c%eb%b2%88%ec%97%90-%ec%a0%95%eb%a6%ac%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/litcoder.com\/?p=1283","title":{"rendered":"[Tip] Git:\uc0ad\uc81c\ud55c file\ub4e4 \ud55c\ubc88\uc5d0 \uc815\ub9ac\ud558\uae30"},"content":{"rendered":"<p>Git repository\uc5d0\uc11c \ub9ce\uc740 \ud30c\uc77c\ub4e4\uc744 \uc0ad\uc81c\ud558\uace0 \uc801\uc6a9\ud558\ub294 \uacbd\uc6b0, <em>git rm<\/em> \uba85\ub839\uc5b4\ub85c \ud30c\uc77c\uc774\ub984\ub4e4\uc744 \ud558\ub098\ud558\ub098 \uc785\ub825\ud574 \uc8fc\ub294\uac83\uc740 \ubb34\ucc99 \uadc0\ucc2e\ub2e4. \uc608\uc804\uc5d0\ub294 \uc138\ub85c \ud3b8\uc9d1\uc774 \ub418\ub294 Ultra-edit \uac19\uc740 utility\ub85c \uc0ad\uc81c\ub41c \ubaa9\ub85d\uc744 \ubcf5\uc0ac\ud55c \ub2e4\uc74c git rm \uba85\ub839\uc5b4 line\uc73c\ub85c \ud3b8\uc9d1\ud574\uc11c \ub2e4\uc2dc terminal\uc5d0 \ubd99\uc5ec \ub123\ub294 \uc0bd\uc9c8\uc744 \ud588\uc5c8\ub2e4.<\/p>\n<p><em><a href=\"https:\/\/www.kernel.org\/pub\/software\/scm\/git\/docs\/git-ls-files.html\">Git-ls-files<\/a><\/em> command\ub97c \uc4f0\uba74 \ub354 \uc774\uc0c1 \uadf8\ub7f4 \ud544\uc694\uac00 \uc5c6\ub2e4. \uc774 command\ub294 repository\uc758 file\ub4e4\uc744 \uc9c0\uc815\ud55c \uc0c1\ud0dc\ubcc4\ub85c \uc54c\ub824\uc900\ub2e4. \uc608\ub97c\ub4e4\uc5b4, \uc0ad\uc81c\ub41c file\uc758 \ubaa9\ub85d\uc744 \ubcf4\ub824\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \ud558\uba74 \ub41c\ub2e4.<\/p>\n<pre class=\"theme:dark-terminal lang:default highlight:0 decode:true\">git ls-files --deleted<\/pre>\n<p>\uc774\ub807\uac8c \uc5bb\uc5b4\uc9c4 \ubaa9\ub85d\uc744 git rm command\uc5d0 \ub118\uaca8\ub3c4 \ub300\ubd80\ubd84\uc758 \uacbd\uc6b0 \ub3d9\uc791\ud558\uaca0\uc9c0\ub9cc, \ud30c\uc77c \uc774\ub984\uc5d0 \uacf5\ubc31\ubb38\uc790\ub97c \ud3ec\ud568\ud558\ub294 \uacbd\uc6b0\uc5d0\ub294 \uc81c\ub300\ub85c \ub3d9\uc791\ud558\uc9c0 \uc54a\ub294\ub2e4. \uacf5\ubc31\ubb38\uc790\uc5d0 \ub300\ud574\uc11c\ub3c4 \uc81c\ub300\ub85c \ub3d9\uc791\ud558\ub3c4\ub85d sed\ub85c \uacf5\ubc31\ubb38\uc790 \uc55e\uc5d0 &#8216;\\&#8217;\ub97c \uc0bd\uc785\ud558\ub824\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \ud55c\ub2e4.<\/p>\n<pre class=\"theme:dark-terminal lang:default highlight:0 decode:true   \">git ls-files --delete|sed 's\/ \/\\\\ \/g'|xargs git rm\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Git repository\uc5d0\uc11c \ub9ce\uc740 \ud30c\uc77c\ub4e4\uc744 \uc0ad\uc81c\ud558\uace0 \uc801\uc6a9\ud558\ub294 \uacbd\uc6b0, git rm \uba85\ub839\uc5b4\ub85c \ud30c\uc77c\uc774\ub984\ub4e4\uc744 \ud558\ub098\ud558\ub098 \uc785\ub825\ud574 \uc8fc\ub294\uac83\uc740 \ubb34\ucc99 \uadc0\ucc2e\ub2e4. \uc608\uc804\uc5d0\ub294 \uc138\ub85c \ud3b8\uc9d1\uc774 \ub418\ub294 Ultra-edit \uac19\uc740 utility\ub85c \uc0ad\uc81c\ub41c \ubaa9\ub85d\uc744 \ubcf5\uc0ac\ud55c \ub2e4\uc74c git rm \uba85\ub839\uc5b4 line\uc73c\ub85c \ud3b8\uc9d1\ud574\uc11c \ub2e4\uc2dc terminal\uc5d0 \ubd99\uc5ec \ub123\ub294 \uc0bd\uc9c8\uc744 \ud588\uc5c8\ub2e4. Git-ls-files command\ub97c \uc4f0\uba74 \ub354 \uc774\uc0c1 \uadf8\ub7f4 \ud544\uc694\uac00 \uc5c6\ub2e4. \uc774 command\ub294 repository\uc758 file\ub4e4\uc744 \uc9c0\uc815\ud55c \uc0c1\ud0dc\ubcc4\ub85c \uc54c\ub824\uc900\ub2e4. \uc608\ub97c\ub4e4\uc5b4, \uc0ad\uc81c\ub41c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","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_post_was_ever_published":false},"categories":[6],"tags":[53,125],"class_list":["post-1283","post","type-post","status-publish","format-standard","hentry","category-tools","tag-git","tag-tip"],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3847,"url":"https:\/\/litcoder.com\/?p=3847","url_meta":{"origin":1283,"position":0},"title":"Raspberry Pi 5\uc5d0 \uac04\ub2e8\ud55c Linux \uc2dc\uc2a4\ud15c \uc62c\ub9ac\uae30","author":"litcoder","date":"2025\ub144 12\uc6d4 3\uc77c","format":false,"excerpt":"\uc774 \ud3ec\uc2a4\ud305\uc5d0\uc11c\ub294 Raspberry pi 5(RPi5)\uc5d0 \uc544\uc8fc \ub2e8\uc21c\ud55c \ub9ac\ub205\uc2a4 \uc2dc\uc2a4\ud15c\uc744 \uad6c\uc131\ud574\uc11c \ubd80\ud305\ud574 \ubcf4\ub294 \uacfc\uc815\uc744 \ub2e4\ub8ec\ub2e4. Ubuntu 24.04 \uac1c\ubc1c\ud658\uacbd\uc5d0\uc11c RPi5\ub97c \uc704\ud55c u-boot, Linux, Busybox\ub97c \uc124\uc815\ud558\uace0 \ubd80\ud305\ud574 \ubcfc \uac83\uc774\ub2e4. SD card \uc900\ube44 SD card\ub97c \uac1c\ubc1c \ud638\uc2a4\ud2b8 \uba38\uc2e0\uc5d0 \uc0bd\uc785\ud558\uace0 lsblk \uba85\ub839\uc5b4\ub85c \uc5f0\uacb0\ub41c \ub514\ubc14\uc774\uc2a4\ub4e4\uc744 \ud655\uc778\ud55c\ub2e4. \uc704\uc758 \uc608\uc81c\uc5d0\uc11c SD card\ub294 mmclbk0\uc774\ub2e4. \uc800\uc7a5\uacf5\uac04\uc758 \ud06c\uae30\ub97c \ud1b5\ud574 \uad6c\ubd84\ud558\uac70\ub098 SD\u2026","rel":"","context":"&quot;Linux&quot;\uc5d0\uc11c","block_context":{"text":"Linux","link":"https:\/\/litcoder.com\/?cat=4"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/litcoder.com\/wp-content\/uploads\/2025\/11\/u-boot-lsblk.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/litcoder.com\/wp-content\/uploads\/2025\/11\/u-boot-lsblk.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/litcoder.com\/wp-content\/uploads\/2025\/11\/u-boot-lsblk.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":3457,"url":"https:\/\/litcoder.com\/?p=3457","url_meta":{"origin":1283,"position":1},"title":"CMake FetchContent\uc758 target\uc774 \uc911\ubcf5\ub418\ub294 \ubb38\uc81c","author":"litcoder","date":"2024\ub144 9\uc6d4 8\uc77c","format":false,"excerpt":"CMake\uc758 FetchContent\ub294 \ube4c\ub4dc \uacfc\uc815\uae4c\uc9c0 \ucc98\ub9ac\ud574 \uc8fc\uae30\uc5d0 git-submodule \ubcf4\ub2e4 \ud3b8\ub9ac\ud55c \ubc29\uc2dd\uc778 \uac83 \uac19\ub2e4. \ub2e4\ub9cc, version 3.22.1 \uae30\uc900\uc73c\ub85c \uc5ec\ub7ec \ud504\ub85c\uc81d\ud2b8 \ub4e4\uc774 \ub3d9\uc77c\ud55c target\uc774\ub984\uc744 \uc911\ubcf5\ud574\uc11c \uc120\uc5b8\ud558\ub294 \uacbd\uc6b0\uc5d0\ub294 \uc774\ub97c \uc798 \ucc98\ub9ac \ud558\uc9c0 \ubabb\ud558\uace0 \uc704\uc640 \uac19\uc740 \uc5d0\ub7ec\ub97c \ubc49\uace0 \uc885\ub8cc\ub418\ub294 \ubb38\uc81c\uac00 \uc788\ub2e4. -- Found systemd via pkg-config. CMake Error at build\/_deps\/grpc-src\/CMakeLists.txt:667 (add_custom_target): add_custom_target cannot create target\u2026","rel":"","context":"&quot;Tools &amp; Tips&quot;\uc5d0\uc11c","block_context":{"text":"Tools &amp; Tips","link":"https:\/\/litcoder.com\/?cat=6"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":437,"url":"https:\/\/litcoder.com\/?p=437","url_meta":{"origin":1283,"position":2},"title":"WARNING: terminal is not fully functional","author":"litcoder","date":"2012\ub144 12\uc6d4 30\uc77c","format":false,"excerpt":"mac\uc5d0\uc11c git\uad00\ub828 command\ub098 man \uba85\ub839\uc5b4\uc640 \uac19\uc774 more\/less\ub97c \uc0ac\uc6a9\ud558\ub294 \uc2e4\ud589\uc744 \ud560 \ub54c \ub2e4\uc74c\uacfc \uac19\uc740 \uacbd\uace0\uac00 \ucd9c\ub825\ub418\ub294 \uacbd\uc6b0\uac00 \uc788\ub2e4. WARNING: terminal is not fully functional - (press RETURN) max os x\uc758 \uacbd\uc6b0 $TERM\uac12\uc774 \uae30\ubcf8\uc801\uc73c\ub85c xterm-256color\ub85c \uc124\uc815\ub418\ub294\ub370,\u00a0Xcode\ub97c \uc124\uce58 \ud560 \ub54c terminal\uad00\ub828 \uc815\ubcf4\uac00 \uc0ad\uc81c\ub418\uc11c \uc774 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud55c\ub2e4\uace0 \ud55c\ub2e4. \uac04\ub2e8\ud558\uac8c\ub294 \ud130\ubbf8\ub110 -> \ud658\uacbd\uc124\uc815 -> \uace0\uae09\uc5d0\uc11c\u2026","rel":"","context":"&quot;Tools &amp; Tips&quot;\uc5d0\uc11c","block_context":{"text":"Tools &amp; Tips","link":"https:\/\/litcoder.com\/?cat=6"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1456,"url":"https:\/\/litcoder.com\/?p=1456","url_meta":{"origin":1283,"position":3},"title":"MinnowboardMAX\uc5d0 Yocto \uc62c\ub824\ubcf8 \ub0b4\uc6a9 \uc815\ub9ac","author":"litcoder","date":"2016\ub144 2\uc6d4 8\uc77c","format":false,"excerpt":"Yocto\ub294 embedded \ud658\uacbd\uc5d0 Linux\ub97c \ud3b8\ub9ac\ud558\uac8c \uc801\uc6a9\ud558\uae30\uc704\ud55c \ubaa9\uc801\uc758 \ud504\ub85c\uc81d\ud2b8\ub85c \ubcf4\ub2e4 \uc790\uc138\ud55c \ub0b4\uc6a9\uc740 project home page\uc778 https:\/\/www.yoctoproject.org\uc5d0\uc11c \ud655\uc778\ud560 \uc218 \uc788\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Intel Baytrail\uc744 \uc0ac\uc6a9\ud558\ub294 MinnowboardMAX\uc5d0 \u00a0Yocto linux\ub97c \uc62c\ub9ac\ub294 \uacfc\uc815\uc744 \uc124\uba85\ud55c\ub2e4. \ud658\uacbd\uc124\uc815 Ubuntu 14.04 (64bit) sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm 64bit firmware\uac00\u2026","rel":"","context":"&quot;Linux&quot;\uc5d0\uc11c","block_context":{"text":"Linux","link":"https:\/\/litcoder.com\/?cat=4"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/litcoder.com\/wp-content\/uploads\/2016\/02\/yocto_sato_running.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/litcoder.com\/wp-content\/uploads\/2016\/02\/yocto_sato_running.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/litcoder.com\/wp-content\/uploads\/2016\/02\/yocto_sato_running.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/litcoder.com\/wp-content\/uploads\/2016\/02\/yocto_sato_running.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/litcoder.com\/wp-content\/uploads\/2016\/02\/yocto_sato_running.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/litcoder.com\/wp-content\/uploads\/2016\/02\/yocto_sato_running.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":518,"url":"https:\/\/litcoder.com\/?p=518","url_meta":{"origin":1283,"position":4},"title":"bash\uc5d0\uc11c \uc790\ub3d9\uc644\uc131\ud560 \ub54c \uacf5\ubc31 \ubb38\uc790 \ub4e4\uc5b4\uac00\ub294 \ubb38\uc81c","author":"litcoder","date":"2013\ub144 2\uc6d4 6\uc77c","format":false,"excerpt":"\uc5b8\uc81c\ubd80\ud130 \uc600\ub294\uc9c0\ub294 \ubaa8\ub974\uaca0\uc9c0\ub9cc, ubuntu (12.04)\uc758 bash shell\uc5d0\uc11c \uc790\ub3d9\uc644\uc131\uc744 \ud558\ub824\uace0 <tab> key\ub97c \ub204\ub974\uba74 \uacf5\ubc31\ubb38\uc790\uac00 \ud558\ub098\uc529 \ucd94\uac00\ub418\ub294 \ubb38\uc81c\uac00 \uc0dd\uacbc\ub2e4. \uc5ec\ub7ec \ub2e8\uacc4\ub85c \ub418\uc5b4 \uc788\ub294 file\uc5d0 \uc811\uadfc\ud558\ub824\uace0 \ud560 \ub54c \ub9e4\ubc88 <tab> key\ub97c \ub204\ub974\uace0 <backspace>\ub85c \uacf5\ubc31\ubb38\uc790\ub97c \uc9c0\uc6cc\uc918\uc57c \ud558\uae30 \ub54c\ubb38\uc5d0 \ubb34\ucc99 \ubd88\ud3b8\ud588\ub294\ub370 \uc880\u00a0\ucc3e\uc544\ubcf4\ub2c8 bash_completion file\uc744 \uc218\uc815\ud574\uc11c \uc774 \ubb38\uc81c\ub97c \ud574\uacb0 \ud560 \uc218 \uc788\uc5c8\ub2e4. sudo vi \/etc\/bash_completion #\u2026","rel":"","context":"&quot;Linux&quot;\uc5d0\uc11c","block_context":{"text":"Linux","link":"https:\/\/litcoder.com\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":557,"url":"https:\/\/litcoder.com\/?p=557","url_meta":{"origin":1283,"position":5},"title":"Bare git\uc73c\ub85c \ubd80\ud130 source code \ubcf5\uc0ac\ud558\uae30","author":"litcoder","date":"2013\ub144 3\uc6d4 11\uc77c","format":false,"excerpt":"Android\uc5d0 \uae30\ubc18\ud55c project\ub97c repo\ub85c mirror\ub85c \ub9cc\ub4e4\ub54c\ub294 --mirror option\uc744 \uc8fc\uc5b4\uc11c bare git\uc744 \ub9cc\ub4e0\ub2e4(\uc9c0\ub09c posting \ucc38\uc870). \ub9cc\uc57d \uc774\ub807\uac8c \ub9cc\ub4e4\uc5b4\uc9c4 bare repository\ub85c \ubd80\ud130 \uc77c\ubc18\uc801\uc778 \ud615\ud0dc\uc758 source repository\ub97c \uc0dd\uc131\ud558\ub824 \ud55c\ub2e4\uba74 \uc5b4\ub5bb\uac8c \ud574\uc57c \ud560\uae4c? \uc774 posting\uc5d0\uc11c\ub294 git-daemon\ub4f1\uc744 \uc124\uce58 \ud558\uc9c0 \uc54a\uace0 local\uc5d0 \uc788\ub294 bare git\uc73c\ub85c \ubd80\ud130 source \uad6c\uc870\ub97c \ub9cc\ub4e4\uc5b4 \ub0b4\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud55c\ub2e4. Repo Init $ repo\u2026","rel":"","context":"&quot;Tools &amp; Tips&quot;\uc5d0\uc11c","block_context":{"text":"Tools &amp; Tips","link":"https:\/\/litcoder.com\/?cat=6"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/1283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1283"}],"version-history":[{"count":2,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/1283\/revisions"}],"predecessor-version":[{"id":2565,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/1283\/revisions\/2565"}],"wp:attachment":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}