{"id":4309,"date":"2024-01-17T18:27:03","date_gmt":"2024-01-17T09:27:03","guid":{"rendered":"https:\/\/blog.since2020.jp\/?p=4309"},"modified":"2024-01-17T18:30:07","modified_gmt":"2024-01-17T09:30:07","slug":"git%e3%81%ae%e3%82%b9%e3%83%9e%e3%83%bc%e3%83%88%e3%81%aa%e4%bd%bf%e3%81%84%e6%96%b9-%e3%80%8c-gitignore%e3%80%8d%e3%81%a7%e4%b8%8d%e8%a6%81%e3%81%aa%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92","status":"publish","type":"post","link":"https:\/\/since2020.jp\/media\/git%e3%81%ae%e3%82%b9%e3%83%9e%e3%83%bc%e3%83%88%e3%81%aa%e4%bd%bf%e3%81%84%e6%96%b9-%e3%80%8c-gitignore%e3%80%8d%e3%81%a7%e4%b8%8d%e8%a6%81%e3%81%aa%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92\/","title":{"rendered":"Git\u306e\u30b9\u30de\u30fc\u30c8\u306a\u4f7f\u3044\u65b9: \u300c.gitignore\u300d\u3067\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u5de7\u307f\u306b\u56de\u907f"},"content":{"rendered":"\n<p>.gitignore \u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3084\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u306b\u542b\u3081\u305f\u304f\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u7c21\u5358\u306b\u9664\u5916\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001.gitignore \u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3068\u3001\u5177\u4f53\u7684\u306a\u4f7f\u7528\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p><span style=\"font-family: arial, helvetica, sans-serif\">Git\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u306b\u6b20\u304b\u305b\u306a\u3044\u30c4\u30fc\u30eb\u3067\u3059\u304c\u3001\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u8de1\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u7279\u306b\u30c7\u30fc\u30bf\u91cf\u306e\u591a\u3044csv\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u3001git\u306e\u5bb9\u91cf\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u3057\u307e\u3046\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002<span data-token-index=\"1\" class=\"notion-enable-hover\">.gitignore<\/span> \u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3084\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u306b\u542b\u3081\u305f\u304f\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u7c21\u5358\u306b\u9664\u5916\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<span data-token-index=\"3\" class=\"notion-enable-hover\">.gitignore<\/span> \u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3068\u3001\u5177\u4f53\u7684\u306a\u4f7f\u7528\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span><!-- notionvc: 836d3553-630c-448f-80c9-730a858b0328 --><\/p>\n\n<h2>gitignore \u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3068\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/h2>\n<b><span style=\"font-family: arial, helvetica, sans-serif;font-size: 18pt\"><strong><code>\u300c.gitignore<\/code> \u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u300d<\/strong><\/span><\/b>\r\n<p><strong><span style=\"font-family: arial, helvetica, sans-serif\">1.\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u3001Git \u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/span><\/strong><\/p>\r\n<p><strong><span style=\"font-family: arial, helvetica, sans-serif\">2.<code>touch .gitignore<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066 <code>.gitignore<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/span><\/strong><\/p>\r\n<div class=\"hcb_wrap\">\r\n<pre class=\"prism line-numbers lang-git\" data-lang=\"Git\"><code>touch .gitignore<\/code><\/pre>\r\n<\/div>\r\n<p><strong><span style=\"font-family: arial, helvetica, sans-serif\"><span data-token-index=\"0\" class=\"notion-enable-hover\">3.ls -a<\/span> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001<span data-token-index=\"2\" class=\"notion-enable-hover\">.gitignore<\/span> \u30d5\u30a1\u30a4\u30eb\u304c\u6b63\u3057\u304f\u4f5c\u6210\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/span><\/strong><!-- notionvc: 0091b142-27b3-45ae-b970-97c47b24e406 --><\/p>\r\n<div class=\"hcb_wrap\">\r\n<pre class=\"prism line-numbers lang-git\" data-lang=\"Git\"><code>ls -a<\/code><\/pre>\r\n<\/div>\r\n<p><span style=\"font-size: 18pt\"><strong><span data-token-index=\"0\" class=\"notion-enable-hover\" style=\"font-family: arial, helvetica, sans-serif\">\u300c\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u7121\u8996\u300d<\/span><\/strong><\/span><!-- notionvc: 0faeb0ea-5427-4ade-bc55-f2fba23c5f62 --><\/p>\r\n<p><strong><span style=\"font-family: arial, helvetica, sans-serif\"><span data-token-index=\"0\" class=\"notion-enable-hover\">1.vi .gitignore<\/span> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 <span data-token-index=\"2\" class=\"notion-enable-hover\">.gitignore<\/span> \u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u307e\u3059\u3002<\/span><\/strong><!-- notionvc: b6b8d3f0-8c23-4252-a00b-cfd05119ebfa --><\/p>\r\n<div class=\"hcb_wrap\">\r\n<pre class=\"prism line-numbers lang-git\" data-lang=\"Git\"><code>vi .gitignore<\/code><\/pre>\r\n<\/div>\r\n<p><strong><span style=\"font-family: arial, helvetica, sans-serif\">2.\u7121\u8996\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u540d\u524d\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001<span data-token-index=\"1\" class=\"notion-enable-hover\">train.csv<\/span> \u3092\u8ffd\u52a0\u3059\u308b\u5834\u5408\u306f\u6b21\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002\u3000\u203b\u300ci\u300d\u3067\u66f8\u304d\u8fbc\u307f\u3001\u300cesc\u300d\u2192\u300c:wq\u300d\u3067\u4fdd\u5b58\u3057\u307e\u3059\u3002<!-- notionvc: 3b3ba628-1693-45b7-8f59-d7bf3b174c20 --><\/span><\/strong><!-- notionvc: 59a4c227-bb28-4ed7-a40b-559d2912cd8a --><\/p>\r\n<p><img decoding=\"async\" src=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-01-17-16.26.27.png\" alt=\"\" width=\"1422\" height=\"492\" class=\"alignnone size-full wp-image-4310\" srcset=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-01-17-16.26.27.png 1422w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-01-17-16.26.27-300x104.png 300w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-01-17-16.26.27-1024x354.png 1024w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2024\/01\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-01-17-16.26.27-768x266.png 768w\" sizes=\"(max-width: 1422px) 100vw, 1422px\" \/><span style=\"font-size: 18pt\"><strong><span data-token-index=\"0\" class=\"notion-enable-hover\" style=\"font-family: arial, helvetica, sans-serif\">\u300c<\/span><\/strong><\/span><strong><span style=\"font-size: 18pt\">.<span style=\"font-family: arial, helvetica, sans-serif\"><span data-token-index=\"0\" class=\"notion-enable-hover\">gitignore<\/span><span data-token-index=\"1\" class=\"notion-enable-hover\"> \u306e\u30b3\u30df\u30c3\u30c8\u300d<\/span><\/span><\/span><\/strong><!-- notionvc: b5818704-4204-4490-a559-baa5ce92b900 --><\/p>\r\n<p><strong><span style=\"font-family: arial, helvetica, sans-serif\"><span data-token-index=\"0\" class=\"notion-enable-hover\">1.git status<\/span> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u5909\u66f4\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/span><\/strong><!-- notionvc: 63a7924f-229a-47a3-83a2-8300b8180250 --><\/p>\r\n<div class=\"hcb_wrap\">\r\n<pre class=\"prism line-numbers lang-git\" data-lang=\"Git\"><code>git status<\/code><\/pre>\r\n<\/div>\r\n<p><strong><span style=\"font-family: arial, helvetica, sans-serif\"><span data-token-index=\"0\" class=\"notion-enable-hover\">2.gitignore<\/span> \u30d5\u30a1\u30a4\u30eb\u3092\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/span><\/strong><!-- notionvc: 321d34fd-0fd2-447a-a998-6a7420e42f94 --><\/p>\r\n<div class=\"hcb_wrap\">\r\n<pre class=\"prism line-numbers lang-git\" data-lang=\"Git\"><code>git add .gitignore<\/code><\/pre>\r\n<\/div>\r\n<p><strong><span style=\"font-family: arial, helvetica, sans-serif\">3.\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8\uff06\u30d7\u30c3\u30b7\u30e5\u3057\u307e\u3059\u3002<\/span><\/strong><!-- notionvc: 925aa3bf-8432-4608-a2dd-67e64ab7402d --><\/p>\r\n<div class=\"hcb_wrap\">\r\n<pre class=\"prism line-numbers lang-git\" data-lang=\"Git\"><code>git commit -m \"Add .gitignore\" git push<\/code><\/pre>\r\n<\/div>\r\n<p><!-- notionvc: 70a60164-6031-4bd0-972e-c50eec5d031c --><\/p>\r\n<p><!-- notionvc: 36f002b3-6ace-4791-8c9d-a1ef5ffa9a55 --><\/p>\n\n<h2>\u6ce8\u610f\u70b9<\/h2>\n<p><span style=\"font-family: arial, helvetica, sans-serif\"><strong><code>.gitignore<\/code><\/strong> \u306b\u8ffd\u52a0\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u305d\u308c\u4ee5\u964d Git \u306b\u8ffd\u8de1\u3055\u308c\u307e\u305b\u3093\u3002\u3088\u3063\u3066\u3059\u3067\u306b\u8ffd\u8de1\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u3092 <strong><code>.gitignore<\/code><\/strong> \u306b\u8ffd\u52a0\u3059\u308b\u5834\u5408\u3001Git \u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304b\u3089\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/span><span style=\"font-family: arial, helvetica, sans-serif\"><strong><\/strong><\/span><\/p>\r\n<p><span style=\"font-family: arial, helvetica, sans-serif\"><strong><code>.gitignore<\/code><\/strong> \u30d5\u30a1\u30a4\u30eb\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/span><\/p>\n\n<h2>\u307e\u3068\u3081<\/h2>\n<p><span style=\"font-family: arial, helvetica, sans-serif\"><span data-token-index=\"0\" class=\"notion-enable-hover\">.gitignore<\/span> \u30d5\u30a1\u30a4\u30eb\u3092\u9069\u5207\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001Git \u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u6574\u7406\u3057\u3001\u7ba1\u7406\u3092\u7c21\u7d20\u5316\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u304c\u3001Git \u3092\u52b9\u7387\u7684\u306b\u4f7f\u3046\u305f\u3081\u306e\u4e00\u52a9\u3068\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/span><!-- notionvc: 9c2201b1-21e2-4328-b11c-dc3320403e59 --><\/p>","protected":false},"excerpt":{"rendered":"<p>.gitignore \u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3084\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u306b\u542b\u3081\u305f\u304f\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u7c21\u5358\u306b\u9664\u5916\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001.gitignore \u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3068\u3001\u5177\u4f53\u7684\u306a\u4f7f\u7528\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":87,"featured_media":4311,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","swell_btn_cv_data":"","footnotes":"","_wp_rev_ctl_limit":""},"categories":[1249],"tags":[265,268,332,166,543],"class_list":["post-4309","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-git","tag-github","tag-jupyter-notebook","tag-vertex-ai","tag-543"],"_links":{"self":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/4309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/comments?post=4309"}],"version-history":[{"count":1,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/4309\/revisions"}],"predecessor-version":[{"id":4322,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/4309\/revisions\/4322"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media\/4311"}],"wp:attachment":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media?parent=4309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/categories?post=4309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/tags?post=4309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}