﻿{"id":2114,"date":"2020-07-17T15:10:30","date_gmt":"2020-07-17T07:10:30","guid":{"rendered":"http:\/\/jilin.hydesign.tw\/?p=2114"},"modified":"2022-10-28T16:34:01","modified_gmt":"2022-10-28T08:34:01","slug":"git-on-branch-develop","status":"publish","type":"post","link":"http:\/\/jilin.hydesign.tw\/index.php\/2020\/07\/17\/git-on-branch-develop\/","title":{"rendered":"Git On branch develop"},"content":{"rendered":"\n<p>\u9047\u5230\u6b0a\u9650\u554f\u984c(On branch develop)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b65\u9a5f\b1 &#8211; \u5efa\u7acb\u5206\u652f<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>git branch yourname (\u81ea\u8a02\u5206\u652f\u540d\u7a31)<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b65\u9a5f\b2 &#8211; \u5207\u63db\u5206\u652f<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>git checkout yourname (\u81ea\u8a02\u5206\u652f\u540d\u7a31)<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b65\u9a5f3 &#8211; \u67e5\u8a62\u72c0\u614b<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>git status<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b65\u9a5f4 &#8211; \u52a0\u5165\u72c0\u614b\u8b8a\u5316<\/h4>\n\n\n\n<p>(use &#8220;git add&#8221; and\/or &#8220;git commit -a&#8221;) git add .<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git add .<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b65\u9a5f5 &#8211; \u5408\u4f75<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>git commit -m 'test'<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b65\u9a5f7 &#8211; \u65b0\u5206\u652f\u63a8\u9001<\/h4>\n\n\n\n<p>\u65b0\u5206\u652f\u63a8\u9001\u521d\u6b21\u8a2d\u5b9a git push &#8211;set-upstream origin xxxx(\u81ea\u8a02\u5206\u652f\u540d\u7a31) <br>\uff0a\u6b64\u6b65\u9a5f\u65bc\u65b0\u958b\u5206\u4e4b\u7b2c\u4e00\u6b21push\u8a2d\u5b9a\u5373\u53ef<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git push --set-upstream origin xxxx<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b65\u9a5f8 &#8211; git push<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>git push<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9047\u5230\u6b0a\u9650\u554f\u984c(On branch develop) \u6b65\u9a5f\b1 &#8211; \u5efa\u7acb\u5206\u652f \u6b65\u9a5f\b2 &#038;#8211&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36,4],"tags":[],"class_list":["post-2114","post","type-post","status-publish","format-standard","hentry","category-git","category-notes"],"_links":{"self":[{"href":"http:\/\/jilin.hydesign.tw\/index.php\/wp-json\/wp\/v2\/posts\/2114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/jilin.hydesign.tw\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jilin.hydesign.tw\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jilin.hydesign.tw\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jilin.hydesign.tw\/index.php\/wp-json\/wp\/v2\/comments?post=2114"}],"version-history":[{"count":10,"href":"http:\/\/jilin.hydesign.tw\/index.php\/wp-json\/wp\/v2\/posts\/2114\/revisions"}],"predecessor-version":[{"id":7532,"href":"http:\/\/jilin.hydesign.tw\/index.php\/wp-json\/wp\/v2\/posts\/2114\/revisions\/7532"}],"wp:attachment":[{"href":"http:\/\/jilin.hydesign.tw\/index.php\/wp-json\/wp\/v2\/media?parent=2114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jilin.hydesign.tw\/index.php\/wp-json\/wp\/v2\/categories?post=2114"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jilin.hydesign.tw\/index.php\/wp-json\/wp\/v2\/tags?post=2114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}