{"id":918,"date":"2024-11-05T13:15:00","date_gmt":"2024-11-05T13:15:00","guid":{"rendered":"https:\/\/turtleflyblog.com\/?p=918"},"modified":"2024-11-05T13:48:23","modified_gmt":"2024-11-05T13:48:23","slug":"creating-and-restoring-deleted-branch-in-github-2","status":"publish","type":"post","link":"https:\/\/turtleflyblog.com\/zh\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github-2\/","title":{"rendered":"GitHub\u65b0\u589e\u548c\u5fa9\u539f\u5df2\u522a\u7684\u5206\u652fBranch"},"content":{"rendered":"\n
\u65b0\u5efa\u5206\u652f\u5728GitHub<\/strong><\/p>\n\n\n\n 1. \u5728 GitHub \u7684\u5132\u5b58\u5eab\u4e2d\uff0c\u9ede\u64camain\u5716\u793a\uff0c\u7136\u5f8c\u5728\u4e3b\u4e0b\u62c9\u83dc\u55ae\u4e2d\u9078\u64c7\u300cView all branches<\/strong>\u300d\u3002<\/p>\n\n\n\n 2. \u9ede\u64ca\u4e0b\u62c9\u83dc\u55ae\u4e2d\u7684\u300cView all branches<\/strong>\u300d\u5f8c\uff0c\u60a8\u5c07\u5c0e\u822a\u5230\u65b0\u9801\u9762\u3002\u7136\u5f8c\uff0c\u9ede\u64ca\u7db2\u9801\u53f3\u4e0a\u89d2\u7684\u300cNew branch<\/strong>\u300d\u3002<\/p>\n\n\n\n 3. \u5728\u300cCreate a branch<\/strong>\u300d\u7db2\u9801\u4e2d\u8f38\u5165\u5206\u652f\u540d\u7a31\u3002\u7136\u5f8c\u9ede\u64ca\u300cCreate new branch<\/strong>\u300d\u6309\u9215\u3002<\/p>\n\n\n\n 4. \u4e00\u500b\u65b0\u500b\u5206\u652f\u5df2\u5efa\u7acb\u3002<\/p>\n\n\n\n \u5fa9\u539f\u5df2\u522a\u9664\u7684\u5206\u652f\u5728GitHub<\/strong><\/p>\n\n\n\n \u53ef\u4ee5\u901a\u904e\u5728\u5132\u5b58\u5eab(repository)\u9801\u9762\u4e2d\u9ede\u64ca\u300cBranch<\/strong>\u300d\uff0c\u7136\u5f8c\u5728\u5206\u652f\u9801\u9762\u4e2d\u9078\u64c7delete\u5716\u793a\u4f86\u522a\u9664\u5206\u652f\u3002<\/p>\n\n\n\n \u73fe\u5728\u8b93\u6211\u5011\u770b\u5982\u4f55\u6062\u5fa9\u525b\u525b\u522a\u9664\u7684\u5206\u652f develop<\/strong>\u3002<\/p>\n\n\n\n 1. \u5728\u5132\u5b58\u5eab(repository)\u9801\u9762\u7684\u53f3\u4e0a\u89d2\uff0c\u9ede\u64ca\u300cActivity\u300d\u3002<\/p>\n\n\n\n 2. \u5728\u300cActivity\u300d\u9801\u9762\u4e2d\uff0c\u9ede\u64ca\u300call Activity\u300d\u4e0b\u62c9\u83dc\u55ae\u4e2d\u7684\u300cBranch deletions<\/strong>\u300d\u3002<\/p>\n\n\n\n 3. \u5728\u65b0\u9801\u9762\u4e2d\uff0c\u9ede\u64ca\u53f3\u5074\u7684\u300cRestore Branch<\/strong>\u300d\u9078\u55ae\u3002<\/p>\n\n\n\n 4. \u88ab\u522a\u9664\u7684\u5206\u652f\u6210\u529f\u5fa9\u539f\u3002<\/p>\n\n\n\n <\/p>\n\n\n\n GitHub \u662f\u4e00\u500b\u5f37\u5927\u7684\u7dda\u4e0a\u5e73\u53f0\u3002\u5168\u7403\u6709\u8a31\u591a\u958b\u767c\u8005\u90fd\u5728 GitHub \u4e0a\u958b\u767c\u548c\u7dad\u8b77\u4ed6\u5011\u7684\u7a0b\u5f0f\u78bc\u3002GitHub \u63d0\u4f9b\u8a31\u591a\u597d\u7528\u7684 UI \u5de5\u5177\u3002\u4e86\u89e3\u9019\u4e9bUI\u5de5\u5177\uff0c\u60a8\u53ef\u4ee5\u6e1b\u5c11\u7dad\u8b77\u7a0b\u5f0f\u78bc\u7684\u6642\u9593\uff0c\u800c\u4e0d\u7528\u57f7\u884c\u8907\u96dc\u4e14\u7e41\u7463\u7684 Git \u547d\u4ee4\u3002<\/p>\n\n\n\n <\/p>\n","protected":false},"excerpt":{"rendered":" \u65b0\u5efa\u5206\u652f\u5728GitHub 1. \u5728 GitHub \u7684\u5132\u5b58\u5eab\u4e2d\uff0c\u9ede\u64camain\u5716\u793a\uff0c\u7136\u5f8c\u5728\u4e3b\u4e0b\u62c9\u83dc\u55ae\u4e2d\u9078\u64c7\u300cView all branches\u300d\u3002 2. \u9ede\u64ca\u4e0b\u62c9\u83dc\u55ae\u4e2d\u7684\u300cView all branches\u300d\u5f8c\uff0c\u60a8\u5c07\u5c0e\u822a\u5230\u65b0\u9801\u9762\u3002\u7136\u5f8c\uff0c\u9ede\u64ca\u7db2\u9801\u53f3\u4e0a\u89d2\u7684\u300cNew branch\u300d\u3002 3. \u5728\u300cCreate a branch\u300d\u7db2\u9801\u4e2d\u8f38\u5165\u5206\u652f\u540d\u7a31\u3002\u7136\u5f8c\u9ede\u64ca\u300cCreate new branch\u300d\u6309\u9215\u3002 4. \u4e00\u500b\u65b0\u500b\u5206\u652f\u5df2\u5efa\u7acb\u3002 \u5fa9\u539f\u5df2\u522a\u9664\u7684\u5206\u652f\u5728GitHub \u53ef\u4ee5\u901a\u904e\u5728\u5132\u5b58\u5eab(repository)\u9801\u9762\u4e2d\u9ede\u64ca\u300cBranch\u300d\uff0c\u7136\u5f8c\u5728\u5206\u652f\u9801\u9762\u4e2d\u9078\u64c7delete\u5716\u793a\u4f86\u522a\u9664\u5206\u652f\u3002 \u73fe\u5728\u8b93\u6211\u5011\u770b\u5982\u4f55\u6062\u5fa9\u525b\u525b\u522a\u9664\u7684\u5206\u652f develop\u3002 1. \u5728\u5132\u5b58\u5eab(repository)\u9801\u9762\u7684\u53f3\u4e0a\u89d2\uff0c\u9ede\u64ca\u300cActivity\u300d\u3002 2. \u5728\u300cActivity\u300d\u9801\u9762\u4e2d\uff0c\u9ede\u64ca\u300call Activity\u300d\u4e0b\u62c9\u83dc\u55ae\u4e2d\u7684\u300cBranch deletions\u300d\u3002 3. \u5728\u65b0\u9801\u9762\u4e2d\uff0c\u9ede\u64ca\u53f3\u5074\u7684\u300cRestore Branch\u300d\u9078\u55ae\u3002 4. \u88ab\u522a\u9664\u7684\u5206\u652f\u6210\u529f\u5fa9\u539f\u3002 GitHub \u662f\u4e00\u500b\u5f37\u5927\u7684\u7dda\u4e0a\u5e73\u53f0\u3002\u5168\u7403\u6709\u8a31\u591a\u958b\u767c\u8005\u90fd\u5728 GitHub \u4e0a\u958b\u767c\u548c\u7dad\u8b77\u4ed6\u5011\u7684\u7a0b\u5f0f\u78bc\u3002GitHub \u63d0\u4f9b\u8a31\u591a\u597d\u7528\u7684 UI \u5de5\u5177\u3002\u4e86\u89e3\u9019\u4e9bUI\u5de5\u5177\uff0c\u60a8\u53ef\u4ee5\u6e1b\u5c11\u7dad\u8b77\u7a0b\u5f0f\u78bc\u7684\u6642\u9593\uff0c\u800c\u4e0d\u7528\u57f7\u884c\u8907\u96dc\u4e14\u7e41\u7463\u7684 Git \u547d\u4ee4\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[38],"tags":[],"class_list":["post-918","post","type-post","status-publish","format-standard","hentry","category-pg"],"yoast_head":"\n<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n