{"id":5635,"date":"2018-09-30T09:27:02","date_gmt":"2018-09-30T00:27:02","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=5635"},"modified":"2018-09-30T09:27:02","modified_gmt":"2018-09-30T00:27:02","slug":"git-%eb%aa%85%eb%a0%b9%ec%96%b4-%ec%a0%95%eb%a6%ac","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=5635","title":{"rendered":"git \uba85\ub839\uc5b4 \uc815\ub9ac"},"content":{"rendered":"<p>\ucc38\uace0 url : https:\/\/rogerdudler.github.io\/git-guide\/index.ko.html<\/p>\n<p>\/\/ \ud604\uc7ac \ub514\ub9ad\ud1a0\ub9ac\ub97c \ube48 local repo \ub9cc\ub4e4\uace0 github\uc5d0 \uc5f0\uacb0\ud558\uae30<br \/>\ngit init<br \/>\ngit remote add origin https:\/\/github.com\/GEOSERVICE\/test.git<\/p>\n<p>\/\/ github\ub85c\ubd80\ud130 local repo \ub9cc\ub4e4\uae30<br \/>\ngit clone https:\/\/github.com\/GEOSERVIC\/test.git<\/p>\n<p>\/\/ \ucd94\uac00, \uc0ad\uc81c, \ubcc0\uacbd\ub41c \ud30c\uc77c\uc5d0 \ub300\ud55c \ubc18\uc601 \ubc0f \ucee4\ubc0b<br \/>\ngit add -A \/\/ WORKING TREE -> INDEX TREE<br \/>\ngit commit -m &#8220;add all&#8221; \/\/ INDEX TREE -> HEAD TREE <\/p>\n<p>\/\/ file1.txt\uc758 \ucd94\uac00 \ubc0f \ucee4\ubc0b<br \/>\ngit add file1.txt<br \/>\ngit commit -m &#8220;add file1.txt&#8221;<\/p>\n<p>\/\/ file1\uc758 \uc0ad\uc81c \ubc0f \ucee4\ubc0b<br \/>\ngit rm file1.txt<br \/>\ngit commit -m &#8220;remove file1.txt&#8221;<\/p>\n<p>\/\/ commit\ud558\uae30\uc804\uc758 \uc9c0\uc6b4 \ud30c\uc77c<br \/>\ngit ls-files &#8211;deleted<\/p>\n<p>\/\/ commit\ud558\uae30\uc804\uc758 \uc9c0\uc6b4 \ud30c\uc77c\uc744 \ubcf5\uc6d0<br \/>\ngit checkout &#8212; plugin\/density.js<\/p>\n<p>\/\/ commit\ud558\uae30\uc804\uc758 \uc9c0\uc6b4 \uc804\uccb4 \ud30c\uc77c \ubcf5\uc6d0<br \/>\ngit checkout &#8212; *<\/p>\n<p>\/\/ github\ub85c \ubc18\uc601<br \/>\ngit push -u origin master \/\/ master\ub294 \uac00\uc9c0\uc758 \uc774\ub984\uc784, master\ub294 \ucd5c\ucd08\uc758 \uae30\ubcf8 \uac00\uc9c0\uc784<\/p>\n<p>\/\/ \uc6d0\uaca9 repo\uc758 \ubcc0\uacbd \uc0ac\ud56d\uc744 local repo\uc5d0 \ubc18\uc601\ud558\uae30<br \/>\ngit pull<\/p>\n<p>\/\/ \ub0b4\uac00 \uc791\uc5c5\ud55c \uac83 \ubc84\ub9ac\uace0 \uc6d0\uaca9 repo\uc5d0 \ub9de\ucd94\uae30<br \/>\ngit fetch origin<br \/>\ngit reset &#8211;hard origin\/master<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ucc38\uace0 url : https:\/\/rogerdudler.github.io\/git-guide\/index.ko.html \/\/ \ud604\uc7ac \ub514\ub9ad\ud1a0\ub9ac\ub97c \ube48 local repo \ub9cc\ub4e4\uace0 github\uc5d0 \uc5f0\uacb0\ud558\uae30 git init git remote add origin https:\/\/github.com\/GEOSERVICE\/test.git \/\/ github\ub85c\ubd80\ud130 local repo \ub9cc\ub4e4\uae30 git clone https:\/\/github.com\/GEOSERVIC\/test.git \/\/ \ucd94\uac00, \uc0ad\uc81c, \ubcc0\uacbd\ub41c \ud30c\uc77c\uc5d0 \ub300\ud55c \ubc18\uc601 \ubc0f \ucee4\ubc0b git add -A \/\/ WORKING TREE -> INDEX TREE git commit -m &#8220;add all&#8221; \/\/ INDEX TREE -> &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=5635\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;git \uba85\ub839\uc5b4 \uc815\ub9ac&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5635","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/5635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5635"}],"version-history":[{"count":4,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/5635\/revisions"}],"predecessor-version":[{"id":9572,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/5635\/revisions\/9572"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5635"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}