{"id":157342,"date":"2019-09-15T08:28:26","date_gmt":"2019-09-15T00:28:26","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=157342"},"modified":"2019-08-29T09:30:40","modified_gmt":"2019-08-29T01:30:40","slug":"to-remote-repository","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/to-remote-repository.html","title":{"rendered":"\u6559\u4f60\u73a9\u8f6cGit-\u63a8\u9001\u5230\u8fdc\u7a0b\u4ed3\u5e93"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nGit \u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u7528\u4e8e\u654f\u6377\u9ad8\u6548\u5730\u5904\u7406\u4efb\u4f55\u6216\u5c0f\u6216\u5927\u7684\u9879\u76ee\u3002Git \u662f Linus Torvalds \u4e3a\u4e86\u5e2e\u52a9\u7ba1\u7406 Linux \u5185\u6838\u5f00\u53d1\u800c\u5f00\u53d1\u7684\u4e00\u4e2a\u5f00\u653e\u6e90\u7801\u7684\u7248\u672c\u63a7\u5236\u8f6f\u4ef6\u3002Git \u4e0e\u5e38\u7528\u7684\u7248\u672c\u63a7\u5236\u5de5\u5177 CVS, Subversion \u7b49\u4e0d\u540c\uff0c\u5b83\u91c7\u7528\u4e86\u5206\u5e03\u5f0f\u7248\u672c\u5e93\u7684\u65b9\u5f0f\uff0c\u4e0d\u5fc5\u670d\u52a1\u5668\u7aef\u8f6f\u4ef6\u652f\u6301\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u63a8\u9001\u4f60\u7684\u65b0\u5206\u652f\u4e0e\u6570\u636e\u5230\u67d0\u4e2a\u8fdc\u7aef\u4ed3\u5e93\u547d\u4ee4:<\/p>\n

git push [alias] [branch]<\/pre>\n

\u4ee5\u4e0a\u547d\u4ee4\u5c06\u4f60\u7684 [branch] \u5206\u652f\u63a8\u9001\u6210\u4e3a [alias] \u8fdc\u7a0b\u4ed3\u5e93\u4e0a\u7684 [branch] \u5206\u652f\uff0c\u5b9e\u4f8b\u5982\u4e0b\u3002<\/p>\n

$ touch runoob-test.txt # \u6dfb\u52a0\u6587\u4ef6\r\n$ git add runoob-test.txt\r\n$ git commit -m \"\u6dfb\u52a0\u5230\u8fdc\u7a0b\"\r\nmaster 69e702d] \u6dfb\u52a0\u5230\u8fdc\u7a0b\r\n1 file changed, 0 insertions(+), 0 deletions(-)\r\ncreate mode 100644 runoob-test.txt\r\n\r\n$ git push origin master # \u63a8\u9001\u5230 Github<\/pre>\n

\u91cd\u65b0\u56de\u5230\u6211\u4eec\u7684 Github \u4ed3\u5e93\uff0c\u53ef\u4ee5\u770b\u5230\u6587\u4ef6\u4ee5\u53ca\u63d0\u4ea4\u4e0a\u6765\u4e86\uff1a
\n\"\"<\/p>\n","protected":false},"excerpt":{"rendered":"

\u63a8\u9001\u4f60\u7684\u65b0\u5206\u652f\u4e0e\u6570\u636e\u5230\u67d0\u4e2a\u8fdc\u7aef\u4ed3\u5e93\u547d\u4ee4: git push [alias] [branch] \u4ee5\u4e0a\u547d\u4ee4\u5c06\u4f60\u7684 […]<\/p>\n","protected":false},"author":321,"featured_media":157324,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-157342","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/157342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/321"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=157342"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/157342\/revisions"}],"predecessor-version":[{"id":157392,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/157342\/revisions\/157392"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/157324"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=157342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=157342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=157342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}