{"id":74,"date":"2012-11-13T14:30:23","date_gmt":"2012-11-13T10:30:23","guid":{"rendered":"http:\/\/galayko.ru\/blog\/?p=74"},"modified":"2013-05-11T03:12:58","modified_gmt":"2013-05-10T23:12:58","slug":"%d1%83%d0%b4%d0%b0%d0%bb%d0%b8%d1%82%d1%8c-%d1%81%d0%b0%d0%b1%d0%bc%d0%be%d0%b4%d1%83%d0%bb%d1%8c-git","status":"publish","type":"post","link":"https:\/\/galayko.ru\/blog\/74","title":{"rendered":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0430\u0431\u043c\u043e\u0434\u0443\u043b\u044c git"},"content":{"rendered":"<ul>\n<li>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0437 <code>.gitmodules<\/code><\/li>\n<li>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>git add .gitmodules<\/code><\/li>\n<li>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0437\u00a0<code>.git\/config<\/code><\/li>\n<li>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>git rm -rf --cached <em>path_to_submodule<\/em><\/code><\/li>\n<li>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>rm -rf <em>path_to_submodule<\/em><\/code><\/li>\n<\/ul>\n<div>\u041c\u043e\u0436\u043d\u043e \u0438 \u0442\u0430\u043a:\u00a0<a href=\"http:\/\/stackoverflow.com\/a\/7646931\">http:\/\/stackoverflow.com\/a\/7646931<\/a><\/div>\n<p>update:<br \/>\n\u041d\u0430\u0448\u0435\u043b \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 &#8212; \u0432 \u0444\u0430\u0439\u043b ~\/.gitconfig \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u043b\u0438\u0430\u0441:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">[alias]\r\n\trms = &quot;!f(){ git config -f .gitmodules --remove-section \\&quot;submodule.$1\\&quot;;git add .gitmodules; git config -f .git\/config --remove-section \\&quot;submodule.$1\\&quot;;git rm -rf --cached \\&quot;$1\\&quot;;rm -rf \\&quot;.git\/modules\/$1\\&quot;;rm -rf \\&quot;$1\\&quot;; }; f&quot;\r\n<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0441\u0442\u043e git rms SUBMODULE<\/p>\n<p>\u0418\u0434\u0435\u044f \u043f\u0440\u0438\u0448\u043b\u0430 \u043e\u0442\u0441\u044e\u0434\u0430: <a href=\"http:\/\/stackoverflow.com\/questions\/1260748\/how-do-i-remove-a-git-submodule\/13185967#13185967\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/1260748\/how-do-i-remove-a-git-submodule<\/a><\/p>\n ","protected":false},"excerpt":{"rendered":"<p>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0437 .gitmodules \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 git add .gitmodules \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0437\u00a0.git\/config \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 git rm -rf &#8212;cached path_to_submodule \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 rm -rf path_to_submodule \u041c\u043e\u0436\u043d\u043e \u0438 \u0442\u0430\u043a:\u00a0http:\/\/stackoverflow.com\/a\/7646931 update: \u041d\u0430\u0448\u0435\u043b \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 &#8212; \u0432 \u0444\u0430\u0439\u043b ~\/.gitconfig \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u043b\u0438\u0430\u0441: \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0441\u0442\u043e git rms SUBMODULE \u0418\u0434\u0435\u044f \u043f\u0440\u0438\u0448\u043b\u0430 \u043e\u0442\u0441\u044e\u0434\u0430: http:\/\/stackoverflow.com\/questions\/1260748\/how-do-i-remove-a-git-submodule<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.11 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0430\u0431\u043c\u043e\u0434\u0443\u043b\u044c git &mdash; \u0411\u043b\u043e\u0433 \u0413\u0430\u043b\u0430\u0439\u043a\u043e \u041d\u0438\u043a\u0438\u0442\u044b<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/galayko.ru\/blog\/74\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0430\u0431\u043c\u043e\u0434\u0443\u043b\u044c git &mdash; \u0411\u043b\u043e\u0433 \u0413\u0430\u043b\u0430\u0439\u043a\u043e \u041d\u0438\u043a\u0438\u0442\u044b\" \/>\n<meta property=\"og:description\" content=\"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0437 .gitmodules \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 git add .gitmodules \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0437\u00a0.git\/config \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 git rm -rf --cached path_to_submodule \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 rm -rf path_to_submodule \u041c\u043e\u0436\u043d\u043e \u0438 \u0442\u0430\u043a:\u00a0http:\/\/stackoverflow.com\/a\/7646931 update: \u041d\u0430\u0448\u0435\u043b \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 &#8212; \u0432 \u0444\u0430\u0439\u043b ~\/.gitconfig \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u043b\u0438\u0430\u0441: \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0441\u0442\u043e git rms SUBMODULE \u0418\u0434\u0435\u044f \u043f\u0440\u0438\u0448\u043b\u0430 \u043e\u0442\u0441\u044e\u0434\u0430: http:\/\/stackoverflow.com\/questions\/1260748\/how-do-i-remove-a-git-submodule\" \/>\n<meta property=\"og:url\" content=\"http:\/\/galayko.ru\/blog\/74\" \/>\n<meta property=\"og:site_name\" content=\"\u0411\u043b\u043e\u0433 \u0413\u0430\u043b\u0430\u0439\u043a\u043e \u041d\u0438\u043a\u0438\u0442\u044b\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/nikita.galayko\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-13T10:30:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-05-10T23:12:58+00:00\" \/>\n<meta name=\"author\" content=\"iNiKe\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@galayko\" \/>\n<meta name=\"twitter:site\" content=\"@galayko\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c\" \/>\n\t<meta name=\"twitter:data1\" content=\"iNiKe\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/galayko.ru\/blog\/74\",\"url\":\"http:\/\/galayko.ru\/blog\/74\",\"name\":\"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0430\u0431\u043c\u043e\u0434\u0443\u043b\u044c git &mdash; \u0411\u043b\u043e\u0433 \u0413\u0430\u043b\u0430\u0439\u043a\u043e \u041d\u0438\u043a\u0438\u0442\u044b\",\"isPartOf\":{\"@id\":\"https:\/\/galayko.ru\/blog\/#website\"},\"datePublished\":\"2012-11-13T10:30:23+00:00\",\"dateModified\":\"2013-05-10T23:12:58+00:00\",\"author\":{\"@id\":\"https:\/\/galayko.ru\/blog\/#\/schema\/person\/491dc02d8cece0a7fa259e5bf45ae8e8\"},\"breadcrumb\":{\"@id\":\"http:\/\/galayko.ru\/blog\/74#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/galayko.ru\/blog\/74\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/galayko.ru\/blog\/74#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/galayko.ru\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0430\u0431\u043c\u043e\u0434\u0443\u043b\u044c git\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/galayko.ru\/blog\/#website\",\"url\":\"https:\/\/galayko.ru\/blog\/\",\"name\":\"\u0411\u043b\u043e\u0433 \u0413\u0430\u043b\u0430\u0439\u043a\u043e \u041d\u0438\u043a\u0438\u0442\u044b\",\"description\":\"\u0413\u0430\u043b\u0430\u0439\u043a\u043e \u041d\u0438\u043a\u0438\u0442\u0430 \u0413\u0435\u043d\u043d\u0430\u0434\u044c\u0435\u0432\u0438\u0447\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/galayko.ru\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/galayko.ru\/blog\/#\/schema\/person\/491dc02d8cece0a7fa259e5bf45ae8e8\",\"name\":\"iNiKe\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/galayko.ru\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d9513c8b9ba17eb2e8be5eb3b0125ffa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d9513c8b9ba17eb2e8be5eb3b0125ffa?s=96&d=mm&r=g\",\"caption\":\"iNiKe\"},\"description\":\"\u041a\u0440\u043e\u0441\u0441-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434\u0435\u0440.\",\"sameAs\":[\"http:\/\/www.galayko.ru\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0430\u0431\u043c\u043e\u0434\u0443\u043b\u044c git &mdash; \u0411\u043b\u043e\u0433 \u0413\u0430\u043b\u0430\u0439\u043a\u043e \u041d\u0438\u043a\u0438\u0442\u044b","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/galayko.ru\/blog\/74","og_locale":"ru_RU","og_type":"article","og_title":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0430\u0431\u043c\u043e\u0434\u0443\u043b\u044c git &mdash; \u0411\u043b\u043e\u0433 \u0413\u0430\u043b\u0430\u0439\u043a\u043e \u041d\u0438\u043a\u0438\u0442\u044b","og_description":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0437 .gitmodules \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 git add .gitmodules \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0437\u00a0.git\/config \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 git rm -rf --cached path_to_submodule \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 rm -rf path_to_submodule \u041c\u043e\u0436\u043d\u043e \u0438 \u0442\u0430\u043a:\u00a0http:\/\/stackoverflow.com\/a\/7646931 update: \u041d\u0430\u0448\u0435\u043b \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 &#8212; \u0432 \u0444\u0430\u0439\u043b ~\/.gitconfig \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u043b\u0438\u0430\u0441: \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0441\u0442\u043e git rms SUBMODULE \u0418\u0434\u0435\u044f \u043f\u0440\u0438\u0448\u043b\u0430 \u043e\u0442\u0441\u044e\u0434\u0430: http:\/\/stackoverflow.com\/questions\/1260748\/how-do-i-remove-a-git-submodule","og_url":"http:\/\/galayko.ru\/blog\/74","og_site_name":"\u0411\u043b\u043e\u0433 \u0413\u0430\u043b\u0430\u0439\u043a\u043e \u041d\u0438\u043a\u0438\u0442\u044b","article_publisher":"https:\/\/www.facebook.com\/nikita.galayko","article_published_time":"2012-11-13T10:30:23+00:00","article_modified_time":"2013-05-10T23:12:58+00:00","author":"iNiKe","twitter_card":"summary_large_image","twitter_creator":"@galayko","twitter_site":"@galayko","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c":"iNiKe"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/galayko.ru\/blog\/74","url":"http:\/\/galayko.ru\/blog\/74","name":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0430\u0431\u043c\u043e\u0434\u0443\u043b\u044c git &mdash; \u0411\u043b\u043e\u0433 \u0413\u0430\u043b\u0430\u0439\u043a\u043e \u041d\u0438\u043a\u0438\u0442\u044b","isPartOf":{"@id":"https:\/\/galayko.ru\/blog\/#website"},"datePublished":"2012-11-13T10:30:23+00:00","dateModified":"2013-05-10T23:12:58+00:00","author":{"@id":"https:\/\/galayko.ru\/blog\/#\/schema\/person\/491dc02d8cece0a7fa259e5bf45ae8e8"},"breadcrumb":{"@id":"http:\/\/galayko.ru\/blog\/74#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["http:\/\/galayko.ru\/blog\/74"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/galayko.ru\/blog\/74#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/galayko.ru\/blog"},{"@type":"ListItem","position":2,"name":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0430\u0431\u043c\u043e\u0434\u0443\u043b\u044c git"}]},{"@type":"WebSite","@id":"https:\/\/galayko.ru\/blog\/#website","url":"https:\/\/galayko.ru\/blog\/","name":"\u0411\u043b\u043e\u0433 \u0413\u0430\u043b\u0430\u0439\u043a\u043e \u041d\u0438\u043a\u0438\u0442\u044b","description":"\u0413\u0430\u043b\u0430\u0439\u043a\u043e \u041d\u0438\u043a\u0438\u0442\u0430 \u0413\u0435\u043d\u043d\u0430\u0434\u044c\u0435\u0432\u0438\u0447","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/galayko.ru\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ru-RU"},{"@type":"Person","@id":"https:\/\/galayko.ru\/blog\/#\/schema\/person\/491dc02d8cece0a7fa259e5bf45ae8e8","name":"iNiKe","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/galayko.ru\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d9513c8b9ba17eb2e8be5eb3b0125ffa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d9513c8b9ba17eb2e8be5eb3b0125ffa?s=96&d=mm&r=g","caption":"iNiKe"},"description":"\u041a\u0440\u043e\u0441\u0441-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434\u0435\u0440.","sameAs":["http:\/\/www.galayko.ru"]}]}},"_links":{"self":[{"href":"https:\/\/galayko.ru\/blog\/wp-json\/wp\/v2\/posts\/74"}],"collection":[{"href":"https:\/\/galayko.ru\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/galayko.ru\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/galayko.ru\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/galayko.ru\/blog\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":9,"href":"https:\/\/galayko.ru\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"predecessor-version":[{"id":268,"href":"https:\/\/galayko.ru\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions\/268"}],"wp:attachment":[{"href":"https:\/\/galayko.ru\/blog\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/galayko.ru\/blog\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/galayko.ru\/blog\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}