{"id":37896,"date":"2024-01-10T05:54:27","date_gmt":"2022-11-08T17:28:19","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90git%e3%80%91%e5%bd%93%e7%9c%81%e7%95%a5%e5%8f%82%e6%95%b0%e6%97%b6%e7%9a%84git-push%e8%a1%8c%e4%b8%ba\/"},"modified":"2024-05-04T17:38:42","modified_gmt":"2024-05-04T09:38:42","slug":"%e3%80%90git%e3%80%91%e5%bd%93%e7%9c%81%e7%95%a5%e5%8f%82%e6%95%b0%e6%97%b6%e7%9a%84git-push%e8%a1%8c%e4%b8%ba","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90git%e3%80%91%e5%bd%93%e7%9c%81%e7%95%a5%e5%8f%82%e6%95%b0%e6%97%b6%e7%9a%84git-push%e8%a1%8c%e4%b8%ba\/","title":{"rendered":"\u3010Git\u3011\u5f53\u7701\u7565\u53c2\u6570\u65f6\u7684git push\u884c\u4e3a"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>\u6211\u603b\u662f\u5728\u6267\u884cgit push\u65f6\u611f\u5230\u7d27\u5f20\u3002\u539f\u56e0\u662fgit push\u7684\u884c\u4e3a\u53d6\u51b3\u4e8e\u8bbe\u7f6e\u4e0d\u540c\u3002\u4e3a\u4e86\u5ef6\u957f\u6211\u7684\u5bff\u547d\uff0c\u6211\u603b\u7ed3\u4e86git push\u9009\u9879\u7684\u884c\u4e3a\u3002<\/p>\n<h1>\u4e0d\u8981\u7701\u7565\u53c2\u6570\uff08\u6b63\u5f0f\u683c\u5f0f\uff09<\/h1>\n<pre class=\"post-pre\"><code>$ git push origin main\r\n<\/code><\/pre>\n<p>\u7b2c\u4e00\u4e2a\u53c2\u6570\uff08\u6bd4\u5982 origin\uff09\u4ee3\u8868\u4ed3\u5e93\u540d\u79f0\u3002<br \/>\n\u7b2c\u4e8c\u4e2a\u53c2\u6570\uff08\u6bd4\u5982 main\uff09\u4ee3\u8868\u5206\u652f\u540d\u79f0\u3002<\/p>\n<p>\u5c06\u672c\u5730\u5206\u652f\u63a8\u9001\u5230\u8fdc\u7a0b\u4ed3\u5e93\u7684\u4e3b\u5206\u652f\uff08origin\u7684main\u5206\u652f\uff09\u3002\u6bcf\u6b21\u90fd\u8981\u6253origin master\u592a\u9ebb\u70e6\u4e86\u5462~<\/p>\n<hr \/>\n<h4>\u203b\u8fd9\u91cc\u5b8c\u5168\u662f\u79bb\u9898\u3002<\/h4>\n<p>origin\u6307\u7684\u662f\u8fdc\u7a0b\u4ed3\u5e93\u7684URL\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git remote -v \/\/ \u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306eURL\u3092\u8868\u793a\r\n\r\norigin  https:\/\/github.com\/westhouseK\/git_demo.git (fetch)\r\norigin  https:\/\/github.com\/westhouseK\/git_demo.git (push)\r\n<\/code><\/pre>\n<p>\u5982\u679c\u6ca1\u6709\u663e\u793a\u4efb\u4f55\u5185\u5bb9\uff0c\u5219\u53ef\u4ee5\u5728\u4ee5\u4e0b\u4f4d\u7f6e\u6ce8\u518c\u8fdc\u7a0b\u5b58\u50a8\u5e93\u7684URL\u3002<\/p>\n<pre class=\"post-pre\"><code>\u3010SSH\u767b\u9332\u3057\u3066\u3044\u308b\u4eba\u3011\r\n$ git remote add origin git@github.com:westhouseK\/git_demo.git\r\n\r\n\u3010SSH\u767b\u9332\u3057\u3066\u3044\u306a\u3044\u4eba\u3011\r\n$ git remote add origin https:\/\/github.com\/westhouseK\/git_demo.git\r\n<\/code><\/pre>\n<hr \/>\n<h1>\u3010\u672c\u9898\u3011\u5ffd\u7565\u53c2\u6570<\/h1>\n<pre class=\"post-pre\"><code>$ git push\r\n<\/code><\/pre>\n<h3>\u5206\u7c7b<\/h3>\n<div>\n<div class=\"post-table\">push.default\u8a73\u7d30nothing\u4f55\u3082\u30d7\u30c3\u30b7\u30e5\u3057\u306a\u3044current\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u540c\u540d\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u3068\u3057\u3066\u30d7\u30c3\u30b7\u30e5\u3059\u308bupstream\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306e\u4e0a\u6d41\u30d6\u30e9\u30f3\u30c1\u306b\u30d7\u30c3\u30b7\u30e5\u3059\u308bsimple\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u540c\u540d\u306e\u4e0a\u6d41\u30d6\u30e9\u30f3\u30c1\u306b\u30d7\u30c3\u30b7\u30e5\u3059\u308bmatching\u3059\u3079\u3066\u306e\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3092\u540c\u540d\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u30d7\u30c3\u30b7\u30e5\u3059\u308b<\/div>\n<\/div>\n<p>\u8ddf\u8e2a\u8fdc\u7a0b\u5386\u53f2\u7684\u5206\u652f &#8211; &#8230; de<\/p>\n<p>\u5728Git 1.x\u7248\u672c\u4e2d\uff0c\u5339\u914d\uff08matching\uff09\u662f\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u800c\u5728Git 2.x\u7248\u672c\u4e2d\uff0c\u7b80\u5355\uff08simple\uff09\u6210\u4e3a\u9ed8\u8ba4\u9009\u9879\u3002<\/p>\n<h4>\u8981\u67e5\u770b\u5f53\u524d\u7684\u8bbe\u7f6e\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c&#8230;<\/h4>\n<pre class=\"post-pre\"><code>$ git config --global push.default\r\n<\/code><\/pre>\n<h4>\u4e3a\u4e86\u8fdb\u884c\u8bbe\u7f6e&#8230;<\/h4>\n<pre class=\"post-pre\"><code>$ git config --global push.default simple\r\n<\/code><\/pre>\n<h2>\u2605 \u4ec0\u4e48\u90fd\u6ca1\u6709<\/h2>\n<pre class=\"post-pre\"><code>$ git push\r\nfatal: You didn't specify any refspecs to push, and push.default is \"nothing\".\r\n<\/code><\/pre>\n<p>\u56e0\u4e3a\u6ca1\u6709\u53c2\u6570\uff0c\u6240\u4ee5\u65e0\u6cd5\u8fdb\u884c\u63a8\u9001\uff0c\u5bf9\u5427\u3002\u4ece\u67d0\u79cd\u610f\u4e49\u4e0a\u8bf4\uff0c\u8fd9\u662f\u6700\u5b89\u5168\u7684\uff0c\u4f46\u4e5f\u5f88\u9ebb\u70e6\u3002<\/p>\n<h2>\u2605 \u5f53\u524d\u7684<\/h2>\n<pre class=\"post-pre\"><code>$ git push\r\nTo github.com:westhouseK\/git_demo.git\r\n * [new branch] current_demo -&gt; current_demo\r\n\r\n$ git branch -vv\r\n* current_demo 368c172 first commit\r\n  main         368c172 first commit\r\n<\/code><\/pre>\n<p>\u770b\u8d77\u6765\u73b0\u5728\u8981\u63a8\u9001\u4e0e\u5f53\u524d\u540c\u540d\u7684\u5206\u652f\u3002<br \/>\n\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0c\u5982\u679c\u8fdc\u7a0b\u5df2\u5b58\u5728\u540c\u540d\u5206\u652f\uff0c\u4f1a\u53d1\u51fa\u8b66\u544a\u3002<\/p>\n<pre class=\"post-pre\"><code>error: failed to push some refs to 'git@github.com:westhouseK\/git_demo.git'\r\n<\/code><\/pre>\n<h2>\u2605 \u4e0a\u6e38<\/h2>\n<pre class=\"post-pre\"><code>$ git push\r\nfatal: The current branch upstream_demo has no upstream branch.\r\nTo push the current branch and set the remote as upstream, use\r\n\r\n    git push --set-upstream origin upstream_demo\r\n\r\n\r\n$ git push --set-upstream origin upstream_demo\r\nTo github.com:westhouseK\/git_demo.git\r\n * [new branch]      upstream_demo -&gt; upstream_demo\r\nBranch 'upstream_demo' set up to track remote branch 'upstream_demo' from 'origin'.\r\n\r\n$ git branch -vv\r\n  main          368c172 first commit\r\n* upstream_demo 368c172 [origin\/upstream_demo] first commit\r\n                        \u3000\u2191\u4e0a\u6d41\u30d6\u30e9\u30f3\u30c1\r\n<\/code><\/pre>\n<p>\u5982\u679c\u6ca1\u6709\u8bbe\u7f6e\u4e0a\u6e38\u5206\u652f\uff0c\u5c31\u65e0\u6cd5\u8fdb\u884c\u63a8\u9001\u3002\u5c31\u50cf\u4e0a\u9762\u6240\u8ff0\uff0c\u5728\u63a8\u9001\u65f6\u9700\u8981\u8bbe\u7f6e\u4e0a\u6e38\u5206\u652f\uff0c\u6216\u8005\u5355\u72ec\u8bbe\u7f6e\u4e0a\u6e38\u5206\u652f\u3002\u8fd9\u4e2a\u884c\u4e3a\u770b\u8d77\u6765\u662f\u4e0d\u4f1a\u51fa\u73b0\u5f02\u5e38\u7684\u3002<\/p>\n<h2>\u2605 \u7b80\u5355<\/h2>\n<pre class=\"post-pre\"><code>\u3010\u4e0a\u6d41\u30d6\u30e9\u30f3\u30c1\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3011\r\n$ git push\r\nfatal: The current branch simple_demo has no upstream branch.\r\nTo push the current branch and set the remote as upstream, use\r\n\r\n    git push --set-upstream origin simple_demo\r\n\r\n\r\n\u3010\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u4e0a\u6d41\u30d6\u30e9\u30f3\u30c1\u540d\u3068\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u540d\u304c\u7570\u306a\u308b\u5834\u5408\u3011\r\n$ git push\r\nfatal: The upstream branch of your current branch does not match\r\nthe name of your current branch.  To push to the upstream branch\r\non the remote, use\r\n\r\n    git push origin HEAD:dev\r\n\r\nTo push to the branch of the same name on the remote, use\r\n\r\n    git push origin HEAD\r\n<\/code><\/pre>\n<p>\u5982\u679c\u4e0a\u6e38\u5206\u652f\u6ca1\u6709\u8bbe\u7f6e\uff0c\u6216\u8005\u4e0a\u6e38\u5206\u652f\u4e0e\u672c\u5730\u5206\u652f\u4e0d\u540c\uff0c\u5c31\u65e0\u6cd5\u8fdb\u884c\u63a8\u9001\u3002\u8fd9\u5b8c\u5168\u662f\u56e0\u4e3aGit 2.x\u7cfb\u5217\u7684\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u8bf4\u662f\u53ef\u4ee5\u653e\u5fc3\u4f7f\u7528\u3002\u4f46\u662f\uff0c\u8fd9\u5e76\u4e0d\u7b80\u5355\u554a\uff0c\u54c8\u54c8\u3002<\/p>\n<h2>\u2605 \u5339\u914d<\/h2>\n<pre class=\"post-pre\"><code>$ git push\r\nTo github.com:westhouseK\/git_demo.git\r\n   368c172..3cf3d12  test1 -&gt; test1\r\n   368c172..2b3f77e  test2 -&gt; test2\r\n<\/code><\/pre>\n<p>\u5c06\u672c\u5730\u7684\u6240\u6709\u5206\u652f\u90fd\u63a8\u9001\u5230\u8fdc\u7a0b\u3002\u672c\u6765\u53ea\u60f3\u63a8\u9001test1\uff0c\u4f46\u662ftest2\u4e5f\u88ab\u63a8\u9001\u4e86\u3002\u592a\u53ef\u6015\u5566\u3002<br \/>\n\u53ea\u662f\u5f53\u8fdc\u7a0b\u6ca1\u6709\u8be5\u5206\u652f\u65f6\uff0c\u4f3c\u4e4e\u4e0d\u4f1a\u8fdb\u884c\u63a8\u9001\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git push\r\nEverything up-to-date\r\n<\/code><\/pre>\n<h1>\u6982\u62ec\u8d77\u6765<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Git\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u3001\u6319\u52d5\u304c\u9055\u3046\u306e\u3067\u6ce8\u610f<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Git 1.x\u7cfb\u3067\u306fmatching\u30012.x\u7cfb\u3067\u306fsimple\u304c\u30c7\u30d5\u30a9\u30eb\u30c8<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3092\u30ea\u30e2\u30fc\u30c8\u3068\u540c\u3058\u540d\u524d\u3067\u4f5c\u3063\u3066\u3044\u308c\u3070\u3001\u4e8b\u6545\u3089\u306a\u305d\u3046<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">matching\u306b\u306f\u3001\u3057\u306a\u3044\u65b9\u304c\u7121\u96e3\uff01<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u3061\u306a\u307f\u306b\u3001\u79c1\u306fcurrent<\/ul>\n<p>\u6211\u89c9\u5f97\u8fd9\u6837\u6211\u4e5f\u80fd\u6d3b\u5f97\u66f4\u4e45\u4e86\u3002\u5982\u679c\u6709\u5199\u9519\u7684\u5730\u65b9\uff0c\u8bf7\u544a\u8bc9\u6211\u3002\u56e0\u4e3a\u6211\u4e0d\u60f3\u51cf\u5c11\u522b\u4eba\u7684\u5bff\u547d?<\/p>\n<h1>\u53c2\u8003\u7f51\u7ad9<\/h1>\n<h4>\u65b9\u7a0b\u5f0f<\/h4>\n<h4>\u8bf7\u63d0\u4f9b\u66f4\u8be6\u7ec6\u7684\u53e5\u5b50\u6216\u4fe1\u606f\u4ee5\u4fbf\u53ef\u4ee5\u5b8c\u6210\u60a8\u7684\u8bf7\u6c42\u3002<\/h4>\n<p>\u4ee5\u4e0b\u662f\u5bf9\u7ed9\u51fa\u94fe\u63a5\u7684\u7f51\u9875\u8fdb\u884c\u4e2d\u6587\u7ffb\u8bd1\u7684\u9009\u9879\uff1a<br \/>\n1. https:\/\/gotohayato.com\/content\/116\/<br \/>\n2. https:\/\/www-creators.com\/archives\/4931<br \/>\n3. https:\/\/www.yunabe.jp\/docs\/relearning_git_push_default.html<br \/>\n4. https:\/\/qiita.com\/tamata78\/items\/09cc89ed87f022668d80<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u6211\u603b\u662f\u5728\u6267\u884cgit push\u65f6\u611f\u5230\u7d27\u5f20\u3002\u539f\u56e0\u662fgit push\u7684\u884c\u4e3a\u53d6\u51b3\u4e8e\u8bbe\u7f6e\u4e0d\u540c\u3002\u4e3a\u4e86\u5ef6\u957f\u6211\u7684\u5bff\u547d\uff0c\u6211 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-37896","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>\u3010Git\u3011\u5f53\u7701\u7565\u53c2\u6570\u65f6\u7684git push\u884c\u4e3a - 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\/\u3010git\u3011\u5f53\u7701\u7565\u53c2\u6570\u65f6\u7684git-push\u884c\u4e3a\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Git\u3011\u5f53\u7701\u7565\u53c2\u6570\u65f6\u7684git push\u884c\u4e3a\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u6211\u603b\u662f\u5728\u6267\u884cgit push\u65f6\u611f\u5230\u7d27\u5f20\u3002\u539f\u56e0\u662fgit push\u7684\u884c\u4e3a\u53d6\u51b3\u4e8e\u8bbe\u7f6e\u4e0d\u540c\u3002\u4e3a\u4e86\u5ef6\u957f\u6211\u7684\u5bff\u547d\uff0c\u6211 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u3010git\u3011\u5f53\u7701\u7565\u53c2\u6570\u65f6\u7684git-push\u884c\u4e3a\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-08T17:28:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T09:38:42+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u9896\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90git%e3%80%91%e5%bd%93%e7%9c%81%e7%95%a5%e5%8f%82%e6%95%b0%e6%97%b6%e7%9a%84git-push%e8%a1%8c%e4%b8%ba\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90git%e3%80%91%e5%bd%93%e7%9c%81%e7%95%a5%e5%8f%82%e6%95%b0%e6%97%b6%e7%9a%84git-push%e8%a1%8c%e4%b8%ba\/\",\"name\":\"\u3010Git\u3011\u5f53\u7701\u7565\u53c2\u6570\u65f6\u7684git push\u884c\u4e3a - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-11-08T17:28:19+00:00\",\"dateModified\":\"2024-05-04T09:38:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90git%e3%80%91%e5%bd%93%e7%9c%81%e7%95%a5%e5%8f%82%e6%95%b0%e6%97%b6%e7%9a%84git-push%e8%a1%8c%e4%b8%ba\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90git%e3%80%91%e5%bd%93%e7%9c%81%e7%95%a5%e5%8f%82%e6%95%b0%e6%97%b6%e7%9a%84git-push%e8%a1%8c%e4%b8%ba\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90git%e3%80%91%e5%bd%93%e7%9c%81%e7%95%a5%e5%8f%82%e6%95%b0%e6%97%b6%e7%9a%84git-push%e8%a1%8c%e4%b8%ba\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Git\u3011\u5f53\u7701\u7565\u53c2\u6570\u65f6\u7684git push\u884c\u4e3a\"}]},{\"@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\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90git%e3%80%91%e5%bd%93%e7%9c%81%e7%95%a5%e5%8f%82%e6%95%b0%e6%97%b6%e7%9a%84git-push%e8%a1%8c%e4%b8%ba\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u3010Git\u3011\u5f53\u7701\u7565\u53c2\u6570\u65f6\u7684git push\u884c\u4e3a - 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\/\u3010git\u3011\u5f53\u7701\u7565\u53c2\u6570\u65f6\u7684git-push\u884c\u4e3a\/","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Git\u3011\u5f53\u7701\u7565\u53c2\u6570\u65f6\u7684git push\u884c\u4e3a","og_description":"\u9996\u5148 \u6211\u603b\u662f\u5728\u6267\u884cgit push\u65f6\u611f\u5230\u7d27\u5f20\u3002\u539f\u56e0\u662fgit push\u7684\u884c\u4e3a\u53d6\u51b3\u4e8e\u8bbe\u7f6e\u4e0d\u540c\u3002\u4e3a\u4e86\u5ef6\u957f\u6211\u7684\u5bff\u547d\uff0c\u6211 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u3010git\u3011\u5f53\u7701\u7565\u53c2\u6570\u65f6\u7684git-push\u884c\u4e3a\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-11-08T17:28:19+00:00","article_modified_time":"2024-05-04T09:38:42+00:00","author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90git%e3%80%91%e5%bd%93%e7%9c%81%e7%95%a5%e5%8f%82%e6%95%b0%e6%97%b6%e7%9a%84git-push%e8%a1%8c%e4%b8%ba\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90git%e3%80%91%e5%bd%93%e7%9c%81%e7%95%a5%e5%8f%82%e6%95%b0%e6%97%b6%e7%9a%84git-push%e8%a1%8c%e4%b8%ba\/","name":"\u3010Git\u3011\u5f53\u7701\u7565\u53c2\u6570\u65f6\u7684git push\u884c\u4e3a - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-11-08T17:28:19+00:00","dateModified":"2024-05-04T09:38:42+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90git%e3%80%91%e5%bd%93%e7%9c%81%e7%95%a5%e5%8f%82%e6%95%b0%e6%97%b6%e7%9a%84git-push%e8%a1%8c%e4%b8%ba\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90git%e3%80%91%e5%bd%93%e7%9c%81%e7%95%a5%e5%8f%82%e6%95%b0%e6%97%b6%e7%9a%84git-push%e8%a1%8c%e4%b8%ba\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90git%e3%80%91%e5%bd%93%e7%9c%81%e7%95%a5%e5%8f%82%e6%95%b0%e6%97%b6%e7%9a%84git-push%e8%a1%8c%e4%b8%ba\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010Git\u3011\u5f53\u7701\u7565\u53c2\u6570\u65f6\u7684git push\u884c\u4e3a"}]},{"@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\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90git%e3%80%91%e5%bd%93%e7%9c%81%e7%95%a5%e5%8f%82%e6%95%b0%e6%97%b6%e7%9a%84git-push%e8%a1%8c%e4%b8%ba\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37896","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=37896"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37896\/revisions"}],"predecessor-version":[{"id":99736,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37896\/revisions\/99736"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=37896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=37896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=37896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}