{"id":18506,"date":"2025-03-03T15:02:50","date_gmt":"2025-03-03T15:02:50","guid":{"rendered":"http:\/\/www.max-sperling.bplaced.net\/?p=18506"},"modified":"2025-05-14T08:47:19","modified_gmt":"2025-05-14T08:47:19","slug":"git-features","status":"publish","type":"post","link":"http:\/\/www.max-sperling.bplaced.net\/?p=18506","title":{"rendered":"Git-submodule and Git-lfs"},"content":{"rendered":"<h2>Git-submodule<\/h2>\n<p>&#8230; allows you to include one repository inside another, keeping them as separate projects.<\/p>\n<ul>\n<li>Add a submodule to your repo\n<pre>$ git submodule add {repo-url} {path}<\/pre>\n<\/li>\n<li>Update the submodules in your repo\n<pre>$ git submodule update --init --recursive<\/pre>\n<\/li>\n<li>Remove a submodule from your repo\n<pre>$ git submodule rm {path}<\/pre>\n<\/li>\n<\/ul>\n<hr>\n<h2>Git-lfs<\/h2>\n<p>&#8230; allows you to store pointers to large binary files that are kept in a remote storage.<\/p>\n<ul>\n<li>Add a file pointer to your repo\n<pre>$ git lfs track {path}<\/pre>\n<\/li>\n<li>Update the file pointers in your repo\n<pre>$ git lfs pull<\/pre>\n<\/li>\n<li>Remove a file pointer from your repo\n<pre>$ git lfs untrack {path}<\/pre>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Git-submodule &#8230; allows you to include one repository inside another, keeping them as separate projects. Add a submodule to your<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[24],"tags":[],"_links":{"self":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/18506"}],"collection":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18506"}],"version-history":[{"count":25,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/18506\/revisions"}],"predecessor-version":[{"id":18767,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/18506\/revisions\/18767"}],"wp:attachment":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18506"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}