{"id":518,"date":"2018-12-24T10:54:16","date_gmt":"2018-12-24T10:54:16","guid":{"rendered":"http:\/\/happily70.dothome.co.kr\/?p=518"},"modified":"2019-02-12T14:58:38","modified_gmt":"2019-02-12T14:58:38","slug":"%ec%a7%80%ec%98%a5%ec%97%90%ec%84%9c-%ec%98%a8-git-git%ec%9d%98-%ec%9b%90%eb%a6%ac-%ec%b4%9d-12%ea%b0%95","status":"publish","type":"post","link":"http:\/\/happily70.dothome.co.kr\/?p=518","title":{"rendered":"[git] \uc9c0\uc625\uc5d0\uc11c \uc628 GIT &#8211; two"},"content":{"rendered":"<p><strong>git config<\/strong><br \/>\n\ud611\uc5c5\uc744 \uc704\ud574 (\uc804\uc5ed)\uc0ac\uc6a9\uc790\uba85\/\uc774\uba54\uc77c \uad6c\uc131\ud560 \ub54c \uc0ac\uc6a9\ud55c\ub2e4.<br \/>\ngit config &#8211; -global user.name \u201cYour name\u201d<br \/>\ngit config &#8211; -global user.email \u201cYour email address\u201d<\/p>\n<p><strong>git init<\/strong><br \/>\ngit \uc800\uc7a5\uc18c\ub97c \ucd08\uae30\ud654\ud55c\ub2e4. \uc800\uc7a5\uc18c\ub098 \ub514\ub809\ud1a0\ub9ac \uc548\uc5d0\uc11c \uc774 \uba85\ub839\uc744 \uc2e4\ud589\ud558\uae30 \uc804\uae4c\uc9c0\ub294 \uadf8\ub0e5 \uc77c\ubc18 \ud3f4\ub354\uc774\ub2e4.<br \/>\n\uc774\uac83\uc744 \uc785\ub825\ud55c \ud6c4\uc5d0(.git \ud30c\uc77c\uc774 \uc0dd\uc131) \ucd94\uac00\uc801\uc778 git \uba85\ub839\uc5b4\ub4e4\uc744 \uc904 \uc218 \uc788\ub2e4.<\/p>\n<p><strong>git add \ud30c\uc77c\uba85<\/strong><br \/>\nuntracked files\uc758 \ud30c\uc77c\ub4e4\uc744 git\uac00 \ucd94\uc801\ud558\ub3c4\ub85d \ud558\uac70\ub098 \ud30c\uc77c\uc740 \uc218\uc815\ud588\uc9c0\ub9cc \uc544\uc9c1 \uc2a4\ud14c\uc774\uc9d5 \uc601\uc5ed\uc5d0 \uc62c\ub77c\uac00\uc9c0 \uc54a\uc740(Changed but not updated) \ud30c\uc77c\ub4e4\uc744 \uc2a4\ud14c\uc774\uc9d5 \uc601\uc5ed\uc5d0 \uc62c\ub9b0\ub2e4.<\/p>\n<p><strong>git commit<\/strong><br \/>\n &#8211; parent: \uc774\uc804 \ucee4\ubc0b \ub0b4\uc6a9\uc744 \uc758\ubbf8\ud55c\ub2e4.<br \/>\n &#8211; blob : \ud30c\uc77c\uc758 \uc774\ub984\uacfc \ud30c\uc77c\uc758 \uc815\ubcf4\ub97c \uc758\ubbf8\ud55c\ub2e4.<br \/>\n &#8211; tree : \ucee4\ubc0b\uc774 \uc77c\uc5b4\ub09c \uc2dc\uc810\uc5d0 \uc791\uc5c5 \ub514\ub809\ud1a0\ub9ac\uc5d0 \uc788\ub294 \ud30c\uc77c\uc758 \uc774\ub984\uacfc \ud30c\uc77c\uc758 \uc774\ub984\uc774 \ub2f4\uace0\uc788\ub294 \ub0b4\uc6a9 \uc0ac\uc774\uc758 \uc815\ubcf4. \uadf8\ub798\uc11c \uac01\uac01\uc758 \ubc84\uc804\ub9c8\ub2e4 \uc11c\ub85c \ub2e4\ub978 tree\ub97c \uac00\uc9c0\uace0 \uc788\uace0 \uadf8 tree\ub294 \ud30c\uc77c\uc758 \uc774\ub984\uacfc \ud30c\uc77c\uc758 \uc815\ubcf4\ub97c \ub2f4\uace0 \uc788\uae30 \ub54c\ubb38\uc5d0 \uadf8 \ubc84\uc804\uc774 \ub9cc\ub4e4\uc5b4\uc9c4 \uc2dc\uc810\uc758 \ud504\ub85c\uc81d\ud2b8 \ud3f4\ub354\uc758 \uc0c1\ud0dc\ub97c \uc54c \uc218 \uc788\ub2e4. \uc774\ub97c \ub2e4\ub978\ub9d0\ub85c &#8220;snapshot\uc744 \ucc0d\ub2e4&#8221;\ub77c\uace0\ub3c4 \ud55c\ub2e4.<\/p>\n<p>\uc5b4\ub5a4 \ubcc0\uacbd\uc0ac\ud56d\uc774\ub77c\ub3c4 \ub9cc\ub4e0 \ud6c4, \uc800\uc7a5\uc18c\uc758 \u201c\uc2a4\ub0c5\uc0f7\u201d\uc744 \ucc0d\uae30 \uc704\ud574 commit\uc744 \uc785\ub825\ud55c\ub2e4. \uacb0\uacfc\ub294 object \ud30c\uc77c\ub85c \uc800\uc7a5\ub41c\ub2e4.<br \/>\n\ucee4\ubc0b\ud558\uba74, \uadf8 \uc2dc\uc810\uc758 \ub2f9\uc2e0\uc758 \uc800\uc7a5\uc18c\uc758 \u201c\uc2a4\ub0c5\uc0f7\u201d\uc744 \ucc0d\uc5b4, \ud504\ub85c\uc81d\ud2b8\ub97c \uc774\uc804\uc758 \uc5b4\ub5a0\ud55c \uc0c1\ud0dc\ub85c\ub4e0 \uc7ac\ud3c9\uac00\ud558\uac70\ub098 \ubcf5\uc6d0\ud560 \uc218 \uc788\ub294 \uccb4\ud06c\ud3ec\uc778\ud2b8\ub97c \uac00\uc9c8 \uc218 \uc788\ub2e4.<\/p>\n<p><strong>git status<\/strong><br \/>\n\uc800\uc7a5\uc18c \uc0c1\ud0dc\ub97c \ud655\uc778 \ud560 \uc218 \uc788\ub2e4.<br \/>\n\uc5b4\ub5a4 \ud30c\uc77c\uc774 \uc800\uc7a5\uc18c \uc548\uc5d0 \uc788\uace0, \ucee4\ubc0b\uc774 \ud544\uc694\ud55c \ubcc0\uacbd\uc0ac\ud56d\uc774 \uc788\ub294\uc9c0, \ud604\uc7ac \uc800\uc7a5\uc18c\uc758 \uc5b4\ub5a4 \ube0c\ub79c\uce58\uc5d0\uc11c \uc791\uc5c5\ud558\uace0 \uc788\ub294\uc9c0 \ub4f1\uc744 \ubcfc \uc218 \uc788\ub2e4.<br \/>\n&#8211; working directory<br \/>\n&#8211; staging area<br \/>\n&#8211; cache &#8211; repository<br \/>\n\uc778\uac15\uc744 \ub4e4\uc73c\uba74\uc11c \uc774 \ubd80\ubd84\uc744 \uac00\uc7a5 \uc798 \uc124\uba85\ub41c \uc774\ubbf8\uc9c0\ub97c \ucc3e\ub2e4\uac00 \uc544\ub798 \uc774\ubbf8\uc9c0\ub97c \ucc3e\uc558\ub2e4.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/happily70.dothome.co.kr\/wp-content\/uploads\/2018\/12\/18333fig0106-tn.png\" alt=\"\" width=\"500\" height=\"460\" class=\"alignnone size-full wp-image-535\" srcset=\"http:\/\/happily70.dothome.co.kr\/wp-content\/uploads\/2018\/12\/18333fig0106-tn.png 500w, http:\/\/happily70.dothome.co.kr\/wp-content\/uploads\/2018\/12\/18333fig0106-tn-300x276.png 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p>\n<p style='font-size: 12px'>\ucd9c\ucc98 : <a href='https:\/\/git-scm.com\/book\/ko\/v1\/%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0-Git-%EA%B8%B0%EC%B4%88' target='_blank'>https:\/\/git-scm.com\/book\/ko\/v1\/%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0-Git-%EA%B8%B0%EC%B4%88<\/a><\/p>\n<p><strong>gistory<\/strong><br \/>\n git\uc744 \ubd84\uc11d\ud558\uae30 \uc704\ud55c \ub3c4\uad6c\ub85c \uba85\ub839\uc744 \ub0b4\ub838\uc744 \ub54c git\uc758 \ub0b4\ubd80\uc5d0\uc11c\ub294 \uc5b4\ub5a4 \uc77c\uc774 \uc77c\uc5b4\ub098\ub294\uac00\ub97c \ubd84\uc11d\ud558\uba74\uc11c git\uc774 \uc5b4\ub5bb\uac8c \ub3d9\uc791\ud558\ub294\uac00\ub97c \uc2a4\uc2a4\ub85c \uacf5\ubd80\ud558\ub294\ub370 \ub3c4\uc6c0\uc744 \uc900\ub2e4.<br \/>\n<a href='https:\/\/opentutorials.org\/module\/2676\/15213' target='_blank'>gistory \uc124\uce58 \ubc29\ubc95<\/a><\/p>\n<p>git\uc758 \ud2b9\uc131 \uc911 \ud558\ub098!  \ud30c\uc77c\uc774 \uac19\uc740 \ub0b4\uc6a9\uc774\uba74 \ud30c\uc77c\uc758 \uc774\ub984\ub3c4 \uac19\ub2e4.<br \/>\n\uc774 \uc6d0\ub9ac\ub294 \uc544\ub798 \uc0ac\uc774\ud2b8\uc5d0\uc11c \ud655\uc778 \uac00\ub2a5\ud558\ub2e4.<br \/>\n<a href='http:\/\/www.sha1-online.com\/' target='_blank'>sha1 online<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>git config \ud611\uc5c5\uc744 \uc704\ud574 (\uc804\uc5ed)\uc0ac\uc6a9\uc790\uba85\/\uc774\uba54\uc77c \uad6c\uc131\ud560 \ub54c \uc0ac\uc6a9\ud55c\ub2e4. git config &#8211; -global user.name \u201cYour name\u201d git config &#8211; -global user.email \u201cYour email address\u201d git init git \uc800\uc7a5\uc18c\ub97c \ucd08\uae30\ud654\ud55c\ub2e4. \uc800\uc7a5\uc18c\ub098 \ub514\ub809\ud1a0\ub9ac \uc548\uc5d0\uc11c \uc774 \uba85\ub839\uc744 \uc2e4\ud589\ud558\uae30 \uc804\uae4c\uc9c0\ub294 \uadf8\ub0e5 \uc77c\ubc18 \ud3f4\ub354\uc774\ub2e4. \uc774\uac83\uc744 \uc785\ub825\ud55c \ud6c4\uc5d0(.git \ud30c\uc77c\uc774 \uc0dd\uc131) \ucd94\uac00\uc801\uc778 git \uba85\ub839\uc5b4\ub4e4\uc744 \uc904 \uc218 \uc788\ub2e4. git add \ud30c\uc77c\uba85 untracked files\uc758 \ud30c\uc77c\ub4e4\uc744<\/p>\n<footer class=\"entry-footer index-entry\">\n<div class=\"post-social pull-left\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=http%3A%2F%2Fhappily70.dothome.co.kr%2F%3Fp%3D518\" target=\"_blank\" class=\"social-icons\"><i class=\"fa fa-facebook\" aria-hidden=\"true\"><\/i><\/a><a href=\"https:\/\/twitter.com\/home?status=http%3A%2F%2Fhappily70.dothome.co.kr%2F%3Fp%3D518\" target=\"_blank\" class=\"social-icons\"><i class=\"fa fa-twitter\" aria-hidden=\"true\"><\/i><\/a><a href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=http%3A%2F%2Fhappily70.dothome.co.kr%2F%3Fp%3D518&#038;title=%5Bgit%5D+%EC%A7%80%EC%98%A5%EC%97%90%EC%84%9C+%EC%98%A8+GIT+%26%238211%3B+two\" target=\"_blank\" class=\"social-icons\"><i class=\"fa fa-linkedin\" aria-hidden=\"true\"><\/i><\/a><\/div>\n<p class=\"link-more\"><a href=\"http:\/\/happily70.dothome.co.kr\/?p=518\" class=\"more-link\">Continue reading <span class=\"meta-nav\">\u2192<\/span><\/a><\/p>\n<\/footer>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,61],"tags":[62,63],"class_list":["post-518","post","type-post","status-publish","format-standard","hentry","category-etc","category-git","tag-git","tag-63"],"_links":{"self":[{"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/518"}],"collection":[{"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=518"}],"version-history":[{"count":7,"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/518\/revisions"}],"predecessor-version":[{"id":585,"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/518\/revisions\/585"}],"wp:attachment":[{"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=518"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/happily70.dothome.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}