{"id":1036,"date":"2019-02-21T11:02:01","date_gmt":"2019-02-21T02:02:01","guid":{"rendered":"https:\/\/oboki.net\/workspace\/?p=1036"},"modified":"2019-09-01T22:23:15","modified_gmt":"2019-09-01T13:23:15","slug":"git-github%ec%97%90%ec%84%9c-git-%ec%8b%9c%ec%9e%91%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/oboki.net\/workspace\/system\/git-github%ec%97%90%ec%84%9c-git-%ec%8b%9c%ec%9e%91%ed%95%98%ea%b8%b0\/","title":{"rendered":"[Git] Github\uc5d0\uc11c git \uc2dc\uc791\ud558\uae30"},"content":{"rendered":"<h1>Github\uc5d0\uc11c git \uc2dc\uc791\ud558\uae30<\/h1>\n<p>\uac70\uc758 \ubaa8\ub4e0 \ub370\uc774\ud130\ub294 nextcloud\uc5d0 \ubc31\uc5c5\uc744 \ud574\ub450\ub294\ub370, \uc6b4\uc601\ud558\uace0 \uc788\ub294 \uc2dc\uc2a4\ud15c \uc124\uc815 \ud30c\uc77c\ub4e4\uc740 github\uc5d0\uc11c \uad00\ub9ac\ud558\ub294\uac8c \ubc84\uc804\uad00\ub9ac\ub3c4 \ub418\uace0 \uc88b\uc740 \uac83 \uac19\ub2e4.<br \/>\n\uc18c\uc2a4\ucf54\ub4dc\ub294 \uc544\ub2cc\uc9c0\ub9cc \ud558\ub3c4 \uc774\ub7ac\ub2e4\uc800\ub7ac\ub2e4 \uc124\uc815\uc744 \ub9ce\uc774 \ubc14\uafb8\ub294 \ud0d3\uc5d0. mysql \ub364\ud504 \ud30c\uc77c\ub3c4 \uc6a9\ub7c9\uc774 \uc801\uc5b4\uc11c github\uc744 \uc774\uc6a9\ud574\uc11c \ubc31\uc5c5\ud558\uba74 \uc88b\uc740\ub4ef.<\/p>\n<h2>Create a New Repository<\/h2>\n<p>github\uc5d0 \uacc4\uc815\uc744 \ub9cc\ub4e4\uace0 \ub85c\uadf8\uc778\uc744 \ud558\uba74, \uc67c\ucabd \ud0ed <strong>[New]<\/strong> \ubc84\ud2bc\uc744 \ud074\ub9ad\ud574 \uc0c8\ub85c\uc6b4 repository\ub97c \uc0dd\uc131\ud560 \uc218 \uc788\ub2e4.<\/p>\n<p><img decoding=\"async\" src=\"\/workspace\/wp-content\/uploads\/2019\/06\/start_1.png\" alt=\"\" \/><\/p>\n<p>\uc544\ub798\uc640 \uac19\uc774 \uc911\ubcf5\ub418\uc9c0 \uc54a\ub294 \uc774\ub984\uc744 \uc815\ud558\uace0 public | private \uc911\uc5d0 \uc120\ud0dd\uc744 \ud55c\ub2e4. \uc5ec\uae30\uc11c \uc124\uc815\ud55c \uac12\ub4e4\uc740 \ub098\uc911\uc5d0 \ubaa8\ub450 \ubcc0\uacbd \uac00\ub2a5\ud558\ub2e4.<\/p>\n<p><img decoding=\"async\" src=\"\/workspace\/wp-content\/uploads\/2019\/06\/start_2.png\" alt=\"\" \/><\/p>\n<p>\uc0dd\uc131\ub41c git repository\uc758 \uc6f9\ud398\uc774\uc9c0\ub85c \uc811\uadfc\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \ube44\uc5b4\uc788\ub294 \ub0b4 repository\uc640 \ud568\uaed8 \ud30c\uc77c\ub4e4\uc744 \uc5c5\ub85c\ub4dc \ud558\ub294 \uac04\ub2e8\ud55c \uac00\uc774\ub4dc\ub97c \uc54c\ub824\uc8fc\ub294\ub370 \uc54c\ub824\uc900 \uba85\ub839\uc5b4\ub4e4\uc744 \uadf8\ub300\ub85c \ub530\ub77c\ud558\uba74 \ub41c\ub2e4.<\/p>\n<p><img decoding=\"async\" src=\"\/workspace\/wp-content\/uploads\/2019\/06\/start_3.png\" alt=\"\" \/><\/p>\n<p>Linux \uc2dc\uc2a4\ud15c\uc774\uba74 sh \ud658\uacbd\uc5d0\uc11c \uc9c4\ud589\ud558\uba74 \ub418\uace0, Windows \ud658\uacbd\uc778 \uacbd\uc6b0 git bash \ucf58\uc194\uc5d0\uc11c \uc9c4\ud589\ud558\uba74 \ub41c\ub2e4.<\/p>\n<h3>git config<\/h3>\n<p>\uba3c\uc800 \ub3d9\uae30\ud654\ub97c \uc9c4\ud589\ud560 \ub514\ub809\ud1a0\ub9ac\ub85c \uc774\ub3d9\ud574\uc11c github \uacc4\uc815 \uc815\ubcf4\ub97c \uc124\uc815\ud55c\ub2e4.<\/p>\n<pre><code class=\"bash\">git config user.name \"${Github Username}\"\ngit config user.email \"${Github Email}\"\n<\/code><\/pre>\n<p>\uc2dc\uc2a4\ud15c\uc5d0 \uc804\uc5ed\uc73c\ub85c \uc124\uc815\ud558\ub824\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \uba85\ub839.<\/p>\n<pre><code class=\"bash\">git config --global user.name \"${Github Username}\"\ngit config --global user.email \"${Github Email}\"\n<\/code><\/pre>\n<h3>git init<\/h3>\n<p>github repository\uc640 \ub3d9\uae30\ud654\uac00 \uc9c4\ud589\ub420 \ub514\ub809\ud1a0\ub9ac\uc5d0\uc11c <code>git init<\/code> \uba85\ub839\uc744 \uc218\ud589\ud558\uba74 \uc228\uae40 \ud30c\uc77c\uc778 <code>.git<\/code> \ub514\ub809\ud1a0\ub9ac\uac00 \uc0dd\uc131\ub418\uba70 \uc5ec\uae30\uc5d0 \uc55e\uc73c\ub85c \uad00\ub9ac\ud560 \ud30c\uc77c\ub4e4\uacfc \ubcc0\uacbd\uc0ac\ud56d \uadf8\ub9ac\uace0 \uc6d0\uaca9 repository \uc815\ubcf4\ub4e4\uc774 \uae30\ub85d\ub420 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uac00 \ub41c\ub2e4.<\/p>\n<pre><code class=\"bash\">$ git init\nInitialized empty Git repository in ..\/httpd\/2.4.27\/conf\/.git\/\n<\/code><\/pre>\n<h3>git add<\/h3>\n<p><code>git add ${Some file}<\/code> \uba85\ub839\uc73c\ub85c \ubc84\uc804\uad00\ub9ac\uac00 \ub420 \ud30c\uc77c\ub4e4\uc744 \ucd94\uac00\ud560 \uc218 \uc788\ub2e4. \ub2e4\uc74c\uacfc \uac19\uc774 <code>*<\/code> \ub97c \uc0ac\uc6a9\ud558\uba74 \ud604\uc7ac \uacbd\ub85c\uc758 \ubaa8\ub4e0 \ud30c\uc77c\/\ub514\ub809\ud1a0\ub9ac\ub97c \uad00\ub9ac\ud55c\ub2e4.<\/p>\n<pre><code class=\"bash\">$ git add *\n<\/code><\/pre>\n<h3>git commit<\/h3>\n<p>\uc9c0\uae08\uc740 \ucd08\uae30 \ub4f1\ub85d\uc774\uae30 \ub54c\ubb38\uc5d0 \ud2b9\ubcc4\ud788 \ubcc0\ub3d9\uc0ac\ud56d\uc740 \uc5c6\uc9c0\ub9cc, \uc18c\uc2a4 \uc218\uc815\uc774 \ubc1c\uc0dd\ud55c \uc774\ud6c4 <code>git commit<\/code> \uba85\ub839\uc744 \uc218\ud589\ud558\uba74 \uc774\uc804\uc5d0 \ucee4\ubc0b\ub410\ub358 \uc0c1\ud0dc\uc5d0\uc11c \uc9c0\uae08 \uc0c1\ud0dc\uae4c\uc9c0\uc758 \ubcc0\uacbd\ubd84\uc744 \uae30\ub85d\ud55c\ub2e4. <code>-m<\/code> \uc635\uc158\uc73c\ub85c \ud604\uc7ac \ubcc0\uacbd\ubd84\uc5d0 \ub300\ud55c \uba54\uc2dc\uc9c0\ub97c \uba85\ub839\uc5b4 \ub0b4\uc5d0\uc11c \ubc14\ub85c \ub0a8\uae38 \uc218 \uc788\ub2e4.<\/p>\n<pre><code class=\"bash\">$ git commit -m \"apache httpd confs. first commit.\"\n[master (root-commit) 4f10d65] apache httpd confs. first commit.\n 28 files changed, 5796 insertions(+)\n create mode 100644 extra\/httpd-ssl.conf\n create mode 100644 extra\/httpd-vhosts.conf\n create mode 100644 httpd.conf\n create mode 100644 magic\n create mode 100644 mime.types\n ...\n ...\n ```\n\n### git remote add\n\n\uc5ec\uae30\uae4c\uc9c0 \uc124\uc815\ud55c \ubd80\ubd84\ub4e4\uc740 local git \ub370\uc774\ud130\ubca0\uc5d0\uc774\uc2a4\ub97c \uad00\ub9ac\ud55c \uac83\uc774\uace0 \uc774\ub97c github \ud074\ub77c\uc6b0\ub4dc\uc758 repository\uc640 \ub3d9\uae30\ud654 \ud558\uae30 \uc704\ud574\uc11c \ub9e8\ucc98\uc74c \uc0dd\uc131\ud55c github repository\ub97c remote \uc800\uc7a5\uc18c\ub85c \ub4f1\ub85d\ud574\uc900\ub2e4.\n\n```bash\n$ git remote add origin https:\/\/github.com\/${USERNAME}\/${REPOSITORY_NAME}.git\n<\/code><\/pre>\n<h3>git push<\/h3>\n<p><code>git push<\/code> \uba85\ub839\uc744 \ud1b5\ud574\uc11c \ucee4\ubc0b\ub41c \ub0b4\uc6a9\ub4e4\uc744 \uc800\uc7a5\uc18c\uc5d0 \ubc00\uc5b4\ub123\ub294\ub2e4. \uc774 \ub2e8\uacc4\uac00 \uc218\ud589\ub418\uc5b4\uc57c \ub0b4 \uc18c\uc2a4\uac00 \uc548\uc804\ud558\uac8c \ubcf4\uad00\uc774 \ub41c \uac83\uc774\uace0, \uacf5\uc720\uac00 \uac00\ub2a5\ud55c \uc0c1\ud0dc\uac00 \ub41c\ub2e4.<\/p>\n<pre><code class=\"bash\">$ git push -u origin master\nUsername for 'https:\/\/github.com': *********\nPassword for 'https:\/\/**********@github.com': \nCounting objects: 23, done.\nDelta compression using up to 8 threads.\nCompressing objects: 100% (23\/23), done.\nWriting objects: 100% (23\/23), 45.23 KiB | 0 bytes\/s, done.\nTotal 23 (delta 4), reused 0 (delta 0)\nremote: Resolving deltas: 100% (4\/4), done.\nTo https:\/\/github.com\/**********\/${REPOSITORY_NAME}.git\n * [new branch]      master -&gt; master\nBranch master set up to track remote branch master from origin.\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"\/workspace\/wp-content\/uploads\/2019\/06\/start_5.png\" alt=\"\" \/><\/p>\n<p>\ub2e4\uc2dc \ub9e8 \ucc98\uc74c \uc0dd\uc131\ud588\ub358 repository \uc6f9\ud398\uc774\uc9c0\uc5d0 \uc811\uadfc\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \ucee4\ubc0b \ub85c\uadf8\uc640 \ub3d9\uae30\ud654\ub41c \ud30c\uc77c\ub4e4\uc744 \ud655\uc778\ud560 \uc218 \uc788\ub2e4.<\/p>\n<p><img decoding=\"async\" src=\"\/workspace\/wp-content\/uploads\/2019\/06\/start_4.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Github\uc5d0\uc11c git \uc2dc\uc791\ud558\uae30 \uac70\uc758 \ubaa8\ub4e0 \ub370\uc774\ud130\ub294 nextcloud\uc5d0 \ubc31\uc5c5\uc744 \ud574\ub450\ub294\ub370, \uc6b4\uc601\ud558\uace0 \uc788\ub294 \uc2dc\uc2a4\ud15c \uc124\uc815 \ud30c\uc77c\ub4e4\uc740 github\uc5d0\uc11c \uad00\ub9ac\ud558\ub294\uac8c \ubc84\uc804\uad00\ub9ac\ub3c4 \ub418\uace0 \uc88b\uc740 \uac83 \uac19\ub2e4. \uc18c\uc2a4\ucf54\ub4dc\ub294 \uc544\ub2cc\uc9c0\ub9cc \ud558\ub3c4 \uc774\ub7ac\ub2e4\uc800\ub7ac\ub2e4 \uc124\uc815\uc744 \ub9ce\uc774 \ubc14\uafb8\ub294 \ud0d3\uc5d0. mysql \ub364\ud504 \ud30c\uc77c\ub3c4 \uc6a9\ub7c9\uc774 \uc801\uc5b4\uc11c github\uc744 \uc774\uc6a9\ud574\uc11c \ubc31\uc5c5\ud558\uba74 \uc88b\uc740\ub4ef. Create a New Repository github\uc5d0 \uacc4\uc815\uc744 \ub9cc\ub4e4\uace0 \ub85c\uadf8\uc778\uc744 \ud558\uba74, \uc67c\ucabd \ud0ed [New] \ubc84\ud2bc\uc744 \ud074\ub9ad\ud574 \uc0c8\ub85c\uc6b4 repository\ub97c \uc0dd\uc131\ud560 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"class_list":["post-1036","post","type-post","status-publish","format-standard","hentry","category-system"],"_links":{"self":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/posts\/1036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/comments?post=1036"}],"version-history":[{"count":2,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/posts\/1036\/revisions"}],"predecessor-version":[{"id":1353,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/posts\/1036\/revisions\/1353"}],"wp:attachment":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/media?parent=1036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/categories?post=1036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/tags?post=1036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}