{"id":18,"date":"2020-07-15T15:12:55","date_gmt":"2020-07-15T07:12:55","guid":{"rendered":"http:\/\/blog.gamekingtao.top\/?p=18"},"modified":"2020-07-15T15:16:17","modified_gmt":"2020-07-15T07:16:17","slug":"git-branch-set-upstream-%e6%9c%ac%e5%9c%b0%e5%85%b3%e8%81%94%e8%bf%9c%e7%a8%8b%e5%88%86%e6%94%af","status":"publish","type":"post","link":"https:\/\/blog.gamekingtao.top\/index.php\/2020\/07\/15\/git-branch-set-upstream-%e6%9c%ac%e5%9c%b0%e5%85%b3%e8%81%94%e8%bf%9c%e7%a8%8b%e5%88%86%e6%94%af\/","title":{"rendered":"git branch &#8211;set-upstream \u672c\u5730\u5173\u8054\u8fdc\u7a0b\u5206\u652f"},"content":{"rendered":"<p>\u6700\u8fd1\u4f7f\u7528git pull\u7684\u65f6\u5019\u591a\u6b21\u78b0\u89c1\u4e0b\u9762\u7684\u60c5\u51b5\uff1a<\/p>\n<p>There is no tracking information for the current branch.<br \/>\nPlease specify which branch you want to merge with.<br \/>\nSee git-pull(1) for details.<\/p>\n<p>git pull <remote> <branch><\/p>\n<p>If you wish to set tracking information for this branch you can do so with:<\/p>\n<p>git branch &#8211;set-upstream-to=origin\/<branch> release<br \/>\n\u5176\u5b9e\uff0c\u8f93\u51fa\u7684\u63d0\u793a\u4fe1\u606f\u8bf4\u7684\u8fd8\u662f\u6bd4\u8f83\u660e\u767d\u7684\u3002<\/p>\n<p>\u4f7f\u7528git\u5728\u672c\u5730\u65b0\u5efa\u4e00\u4e2a\u5206\u652f\u540e\uff0c\u9700\u8981\u505a\u8fdc\u7a0b\u5206\u652f\u5173\u8054\u3002\u5982\u679c\u6ca1\u6709\u5173\u8054\uff0cgit\u4f1a\u5728\u4e0b\u9762\u7684\u64cd\u4f5c\u4e2d\u63d0\u793a\u4f60\u663e\u793a\u7684\u6dfb\u52a0\u5173\u8054\u3002<\/p>\n<p>\u5173\u8054\u76ee\u7684\u662f\u5728\u6267\u884cgit pull, git push\u64cd\u4f5c\u65f6\u5c31\u4e0d\u9700\u8981\u6307\u5b9a\u5bf9\u5e94\u7684\u8fdc\u7a0b\u5206\u652f\uff0c\u4f60\u53ea\u8981\u6ca1\u6709\u663e\u793a\u6307\u5b9a\uff0cgit pull\u7684\u65f6\u5019\uff0c\u5c31\u4f1a\u63d0\u793a\u4f60\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\u5c31\u662f\u6309\u7167\u63d0\u793a\u6dfb\u52a0\u4e00\u4e0b\u5457\uff1a<\/p>\n<p>git branch &#8211;set-upstream-to=origin\/remote_branch  your_branch<br \/>\n\u5176\u4e2d\uff0corigin\/remote_branch\u662f\u4f60\u672c\u5730\u5206\u652f\u5bf9\u5e94\u7684\u8fdc\u7a0b\u5206\u652f\uff1byour_branch\u662f\u4f60\u5f53\u524d\u7684\u672c\u5730\u5206\u652f\u3002<\/p>\n<p>\u4f5c\u8005\uff1aiOS\u5f00\u53d1\u5230\u6c7d\u4fee<br \/>\n\u94fe\u63a5\uff1ahttps:\/\/www.jianshu.com\/p\/403d6ad11e30<br \/>\n\u6765\u6e90\uff1a\u7b80\u4e66<br \/>\n\u8457\u4f5c\u6743\u5f52\u4f5c\u8005\u6240\u6709\u3002\u5546\u4e1a\u8f6c\u8f7d\u8bf7\u8054\u7cfb\u4f5c\u8005\u83b7\u5f97\u6388\u6743\uff0c\u975e\u5546\u4e1a\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u4f7f\u7528git pull\u7684\u65f6\u5019\u591a\u6b21\u78b0\u89c1\u4e0b\u9762\u7684\u60c5\u51b5\uff1a There is no tracking informat &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.gamekingtao.top\/index.php\/2020\/07\/15\/git-branch-set-upstream-%e6%9c%ac%e5%9c%b0%e5%85%b3%e8%81%94%e8%bf%9c%e7%a8%8b%e5%88%86%e6%94%af\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cgit branch &#8211;set-upstream \u672c\u5730\u5173\u8054\u8fdc\u7a0b\u5206\u652f\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/18"}],"collection":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":1,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":19,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/posts\/18\/revisions\/19"}],"wp:attachment":[{"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gamekingtao.top\/index.php\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}