{"id":899,"date":"2024-11-05T13:08:27","date_gmt":"2024-11-05T13:08:27","guid":{"rendered":"https:\/\/turtleflyblog.com\/?p=899"},"modified":"2024-11-05T13:47:25","modified_gmt":"2024-11-05T13:47:25","slug":"creating-and-restoring-deleted-branch-in-github","status":"publish","type":"post","link":"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/","title":{"rendered":"Creating and Restoring deleted branches in GitHub"},"content":{"rendered":"\n

Creating a branch in GitHub<\/strong><\/p>\n\n\n\n

1. On GitHub, navigate the main menu icon in the repository and click View all branches<\/strong> in the main drop-down menu.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

<\/p>\n\n\n\n

2. After clicking View all branches<\/strong> in the drop-down menu\uff0cyou will navigate to the new page. You then click New branch<\/strong> which is shown on the right top side of the webpage. <\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

<\/p>\n\n\n\n

3. Enter the branch name in the Create a branch<\/strong> webpage. Then Click Create new branch<\/strong> button<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n
\"\"<\/figure>\n\n\n\n

4. A new branch is created.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Restoring a deleted branch in GitHub<\/strong><\/p>\n\n\n\n

You can delete a branch by clicking Branch<\/strong> in the repository page and select delete icon the branch page.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n
\"\"<\/figure>\n\n\n\n

Now let\u2019s see how we can restore the branch develop<\/strong> which just be deleted.<\/p>\n\n\n\n

1. In the repository page, click the Activity <\/strong>which is in the right top side in the webpage.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

2. In the Activity page, click Branch deletions<\/strong> in all Activity drop-down menu.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

3. In the new page, click Restore Branch<\/strong> which is in the right side of the webpage.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

4. Then the deleted branch is recovered.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n
\"\"<\/figure>\n\n\n\n

<\/p>\n\n\n\n

GitHub is a powerful online platform. Many worldwide developers develop and maintain their code in GitHub. GitHub provides many intuitive UI tools. By understanding these tools, you can spend less time in maintaining code compared to executing complex and cumbersome Git commands.<\/p>\n","protected":false},"excerpt":{"rendered":"

Creating a branch in GitHub 1. On GitHub, navigate the main menu icon in the repository and click View all branches in the main drop-down menu. 2. After clicking View all branches in the drop-down menu\uff0cyou will navigate to the new page. You then click New branch which is shown on the right top side […]<\/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":"","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":[33],"tags":[],"class_list":["post-899","post","type-post","status-publish","format-standard","hentry","category-programming-2"],"yoast_head":"\nCreating and Restoring deleted branches in GitHub - Who said turtle cannot fly<\/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:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating and Restoring deleted branches in GitHub - Who said turtle cannot fly\" \/>\n<meta property=\"og:description\" content=\"Creating a branch in GitHub 1. On GitHub, navigate the main menu icon in the repository and click View all branches in the main drop-down menu. 2. After clicking View all branches in the drop-down menu\uff0cyou will navigate to the new page. You then click New branch which is shown on the right top side […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/\" \/>\n<meta property=\"og:site_name\" content=\"Who said turtle cannot fly\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-05T13:08:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-05T13:47:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/turtleflyblog.com\/wp-content\/uploads\/2024\/11\/image-1.png\" \/>\n<meta name=\"author\" content=\"Joseph\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Joseph\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/\",\"url\":\"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/\",\"name\":\"Creating and Restoring deleted branches in GitHub - Who said turtle cannot fly\",\"isPartOf\":{\"@id\":\"https:\/\/turtleflyblog.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/turtleflyblog.com\/wp-content\/uploads\/2024\/11\/image-1.png\",\"datePublished\":\"2024-11-05T13:08:27+00:00\",\"dateModified\":\"2024-11-05T13:47:25+00:00\",\"author\":{\"@id\":\"https:\/\/turtleflyblog.com\/#\/schema\/person\/130c2e1bdce4a8ba27bfe14c65988172\"},\"breadcrumb\":{\"@id\":\"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/#breadcrumb\"},\"inLanguage\":\"en-AU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-AU\",\"@id\":\"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/turtleflyblog.com\/wp-content\/uploads\/2024\/11\/image-1.png?fit=865%2C299&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/turtleflyblog.com\/wp-content\/uploads\/2024\/11\/image-1.png?fit=865%2C299&ssl=1\",\"width\":865,\"height\":299},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/turtleflyblog.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating and Restoring deleted branches in GitHub\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/turtleflyblog.com\/#website\",\"url\":\"https:\/\/turtleflyblog.com\/\",\"name\":\"Who said turtle cannot fly\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/turtleflyblog.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-AU\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/turtleflyblog.com\/#\/schema\/person\/130c2e1bdce4a8ba27bfe14c65988172\",\"name\":\"Joseph\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-AU\",\"@id\":\"https:\/\/turtleflyblog.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/539caa7bc4af75cd4ab82fc8d51935da?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/539caa7bc4af75cd4ab82fc8d51935da?s=96&d=mm&r=g\",\"caption\":\"Joseph\"},\"sameAs\":[\"https:\/\/turtleflyblog.com\/\/\"],\"url\":\"https:\/\/turtleflyblog.com\/author\/joseph\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating and Restoring deleted branches in GitHub - Who said turtle cannot fly","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:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/","og_locale":"en_US","og_type":"article","og_title":"Creating and Restoring deleted branches in GitHub - Who said turtle cannot fly","og_description":"Creating a branch in GitHub 1. On GitHub, navigate the main menu icon in the repository and click View all branches in the main drop-down menu. 2. After clicking View all branches in the drop-down menu\uff0cyou will navigate to the new page. You then click New branch which is shown on the right top side […]","og_url":"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/","og_site_name":"Who said turtle cannot fly","article_published_time":"2024-11-05T13:08:27+00:00","article_modified_time":"2024-11-05T13:47:25+00:00","og_image":[{"url":"https:\/\/turtleflyblog.com\/wp-content\/uploads\/2024\/11\/image-1.png"}],"author":"Joseph","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Joseph","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/","url":"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/","name":"Creating and Restoring deleted branches in GitHub - Who said turtle cannot fly","isPartOf":{"@id":"https:\/\/turtleflyblog.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/#primaryimage"},"image":{"@id":"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/#primaryimage"},"thumbnailUrl":"https:\/\/turtleflyblog.com\/wp-content\/uploads\/2024\/11\/image-1.png","datePublished":"2024-11-05T13:08:27+00:00","dateModified":"2024-11-05T13:47:25+00:00","author":{"@id":"https:\/\/turtleflyblog.com\/#\/schema\/person\/130c2e1bdce4a8ba27bfe14c65988172"},"breadcrumb":{"@id":"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/#breadcrumb"},"inLanguage":"en-AU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/"]}]},{"@type":"ImageObject","inLanguage":"en-AU","@id":"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/#primaryimage","url":"https:\/\/i0.wp.com\/turtleflyblog.com\/wp-content\/uploads\/2024\/11\/image-1.png?fit=865%2C299&ssl=1","contentUrl":"https:\/\/i0.wp.com\/turtleflyblog.com\/wp-content\/uploads\/2024\/11\/image-1.png?fit=865%2C299&ssl=1","width":865,"height":299},{"@type":"BreadcrumbList","@id":"https:\/\/turtleflyblog.com\/en\/2024\/11\/05\/creating-and-restoring-deleted-branch-in-github\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/turtleflyblog.com\/en\/"},{"@type":"ListItem","position":2,"name":"Creating and Restoring deleted branches in GitHub"}]},{"@type":"WebSite","@id":"https:\/\/turtleflyblog.com\/#website","url":"https:\/\/turtleflyblog.com\/","name":"Who said turtle cannot fly","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/turtleflyblog.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-AU"},{"@type":"Person","@id":"https:\/\/turtleflyblog.com\/#\/schema\/person\/130c2e1bdce4a8ba27bfe14c65988172","name":"Joseph","image":{"@type":"ImageObject","inLanguage":"en-AU","@id":"https:\/\/turtleflyblog.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/539caa7bc4af75cd4ab82fc8d51935da?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/539caa7bc4af75cd4ab82fc8d51935da?s=96&d=mm&r=g","caption":"Joseph"},"sameAs":["https:\/\/turtleflyblog.com\/\/"],"url":"https:\/\/turtleflyblog.com\/author\/joseph\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/turtleflyblog.com\/wp-json\/wp\/v2\/posts\/899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/turtleflyblog.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/turtleflyblog.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/turtleflyblog.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/turtleflyblog.com\/wp-json\/wp\/v2\/comments?post=899"}],"version-history":[{"count":6,"href":"https:\/\/turtleflyblog.com\/wp-json\/wp\/v2\/posts\/899\/revisions"}],"predecessor-version":[{"id":941,"href":"https:\/\/turtleflyblog.com\/wp-json\/wp\/v2\/posts\/899\/revisions\/941"}],"wp:attachment":[{"href":"https:\/\/turtleflyblog.com\/wp-json\/wp\/v2\/media?parent=899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/turtleflyblog.com\/wp-json\/wp\/v2\/categories?post=899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/turtleflyblog.com\/wp-json\/wp\/v2\/tags?post=899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}