{"id":37551,"date":"2024-01-16T13:26:14","date_gmt":"2023-12-13T20:57:09","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-14\/"},"modified":"2024-05-04T18:38:30","modified_gmt":"2024-05-04T10:38:30","slug":"git%e5%91%bd%e4%bb%a4-14","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-14\/","title":{"rendered":"Git\u547d\u4ee4"},"content":{"rendered":"<h1>\u521b\u5efa\u5b58\u50a8\u5e93<\/h1>\n<ul class=\"post-ul\">GitHub\u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u4f5c\u6210<\/ul>\n<p>\u8bb0\u4e0b\u521b\u5efa\u540e\u4f1a\u663e\u793a\u7684URL\u3002<\/p>\n<ul class=\"post-ul\">\u4f5c\u696d\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3001\u79fb\u52d5\u3059\u308b<\/ul>\n<p>\u7531\u4e8e\u8fd9\u662f\u4e00\u4e2a\u540e\u7eed\u7684\u672c\u5730\u4ed3\u5e93\uff0c\u5efa\u8bae\u5c06\u5176\u4e0e\u521b\u5efa\u7684\u5e93\u540d\u79f0\u5339\u914d\u3002<\/p>\n<pre class=\"post-pre\"><code>$ mkdir work\r\n\r\n$ cd work\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u3057\u3066\u521d\u671f\u5316\u3059\u308b<\/ul>\n<pre class=\"post-pre\"><code>$ git init\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3068\u547c\u3070\u308c\u308b\u9818\u57df\u306b\u767b\u9332\u3059\u308b(\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3068\u3044\u3046)<\/ul>\n<pre class=\"post-pre\"><code>$ git add \u30d5\u30a1\u30a4\u30eb\u540d\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30df\u30c3\u30c8\u3059\u308b<\/ul>\n<p>\u4f7f\u7528-m\u9009\u9879\u7ed9\u63d0\u4ea4\u6dfb\u52a0\u6d88\u606f\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git commit -m \"first commit\"\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u767b\u9332<\/ul>\n<pre class=\"post-pre\"><code>$ git remote add origin \u30e1\u30e2\u3057\u305fURL\r\n\r\n$ git push origin master\r\n<\/code><\/pre>\n<h1>\u5408\u5e76\u8fdc\u7a0b\u5206\u652f<\/h1>\n<ul class=\"post-ul\">\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u306e\u5909\u66f4\u3092\u53d6\u308a\u8fbc\u3080<\/ul>\n<pre class=\"post-pre\"><code>$ git pull origin \u30d6\u30e9\u30f3\u30c1\u540d\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210<\/ul>\n<pre class=\"post-pre\"><code>$ git checkout -b \u30d6\u30e9\u30f3\u30c1\u540d origin\/\u30d6\u30e9\u30f3\u30c1\u540d\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u521b\u5efa\u5b58\u50a8\u5e93 GitHub\u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u4f5c\u6210 \u8bb0\u4e0b\u521b\u5efa\u540e\u4f1a\u663e\u793a\u7684URL\u3002 \u4f5c\u696d\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3001\u79fb\u52d5\u3059\u308b \u7531\u4e8e\u8fd9\u662f [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-37551","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Git\u547d\u4ee4 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/git\u547d\u4ee4-14\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git\u547d\u4ee4\" \/>\n<meta property=\"og:description\" content=\"\u521b\u5efa\u5b58\u50a8\u5e93 GitHub\u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u4f5c\u6210 \u8bb0\u4e0b\u521b\u5efa\u540e\u4f1a\u663e\u793a\u7684URL\u3002 \u4f5c\u696d\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3001\u79fb\u52d5\u3059\u308b \u7531\u4e8e\u8fd9\u662f [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/git\u547d\u4ee4-14\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-13T20:57:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T10:38:30+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-14\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-14\/\",\"name\":\"Git\u547d\u4ee4 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-12-13T20:57:09+00:00\",\"dateModified\":\"2024-05-04T10:38:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-14\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-14\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-14\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Git\u547d\u4ee4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-14\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Git\u547d\u4ee4 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/git\u547d\u4ee4-14\/","og_locale":"zh_CN","og_type":"article","og_title":"Git\u547d\u4ee4","og_description":"\u521b\u5efa\u5b58\u50a8\u5e93 GitHub\u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u4f5c\u6210 \u8bb0\u4e0b\u521b\u5efa\u540e\u4f1a\u663e\u793a\u7684URL\u3002 \u4f5c\u696d\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3001\u79fb\u52d5\u3059\u308b \u7531\u4e8e\u8fd9\u662f [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/git\u547d\u4ee4-14\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-12-13T20:57:09+00:00","article_modified_time":"2024-05-04T10:38:30+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-14\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-14\/","name":"Git\u547d\u4ee4 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-12-13T20:57:09+00:00","dateModified":"2024-05-04T10:38:30+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-14\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-14\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-14\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Git\u547d\u4ee4"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git%e5%91%bd%e4%bb%a4-14\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=37551"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37551\/revisions"}],"predecessor-version":[{"id":100014,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37551\/revisions\/100014"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=37551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=37551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=37551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}