{"id":37633,"date":"2016-06-10T11:00:01","date_gmt":"2016-06-10T08:00:01","guid":{"rendered":"http:\/\/examples.javacodegeeks.com\/?p=37633"},"modified":"2019-04-23T14:45:40","modified_gmt":"2019-04-23T11:45:40","slug":"git-delete-remote-branch-example","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/","title":{"rendered":"Git Delete Remote Branch Example"},"content":{"rendered":"<p>Let&#8217;s say our work with remote branch is complete, or let&#8217;s say one of the team was working on a feature which has been completed now and all the changes has already been merged into remote&#8217;s master branch. Now that we have no requirement of remote branch, we might want to delete it. In this example we shall learn the same.<\/p>\n<h2>1. A brief on Git Push Origin<\/h2>\n<p>Before we start with our example, we need to understand <code>git push origin<\/code> command.<\/p>\n<p><code>git push<\/code> command as we know push commits made on local branch to a remote repository.<br \/>\nThis <code>git push<\/code> command basically takes two arguments:<\/p>\n<ul>\n<li>A remote name, for example, origin<\/li>\n<li>A branch name, for example, master<\/li>\n<\/ul>\n<p>This makes the structure of command as:<\/p>\n<pre class=\"brush:bash\">git push<\/pre>\n<p>We shall be using this command with an additional attribute to perform the desired operation of deleting remote branch which we shall be doing in this example.\n<\/p>\n<h2>2. Git Delete Remote Branch in Action<\/h2>\n<p>To see our example in action, we shall start with creating git repository.<\/p>\n<p>First we shall create a directory for master branch.<\/p>\n<p><figure id=\"attachment_38097\" aria-describedby=\"caption-attachment-38097\" style=\"width: 588px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/01Create-Directory-for-initializing-Git-Branch.jpg\"><img decoding=\"async\" class=\"size-full wp-image-38097\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/01Create-Directory-for-initializing-Git-Branch.jpg\" alt=\"Create Directory for initializing Git Branch\" width=\"588\" height=\"368\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/01Create-Directory-for-initializing-Git-Branch.jpg 588w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/01Create-Directory-for-initializing-Git-Branch-300x188.jpg 300w\" sizes=\"(max-width: 588px) 100vw, 588px\" \/><\/a><figcaption id=\"caption-attachment-38097\" class=\"wp-caption-text\">Create Directory for initializing Git Branch<\/figcaption><\/figure><\/p>\n<p>And in this directory we shall be initializing a bare Git repository. This shall be done using <code>git init<\/code> command with an argument <code>--bare<\/code>.<\/p>\n<p><figure id=\"attachment_38098\" aria-describedby=\"caption-attachment-38098\" style=\"width: 585px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/02Initialize-bare-Git-repository.jpg\"><img decoding=\"async\" class=\"size-full wp-image-38098\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/02Initialize-bare-Git-repository.jpg\" alt=\"Initialize bare Git repository\" width=\"585\" height=\"369\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/02Initialize-bare-Git-repository.jpg 585w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/02Initialize-bare-Git-repository-300x189.jpg 300w\" sizes=\"(max-width: 585px) 100vw, 585px\" \/><\/a><figcaption id=\"caption-attachment-38098\" class=\"wp-caption-text\">Initialize bare Git repository<\/figcaption><\/figure><div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p>Now we shall create a new directory where we shall be cloning the empty Git repository that we just created.<\/p>\n<p><figure id=\"attachment_38099\" aria-describedby=\"caption-attachment-38099\" style=\"width: 583px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/03Create-directory-for-branch.jpg\"><img decoding=\"async\" class=\"size-full wp-image-38099\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/03Create-directory-for-branch.jpg\" alt=\"Create directory for branch\" width=\"583\" height=\"364\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/03Create-directory-for-branch.jpg 583w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/03Create-directory-for-branch-300x187.jpg 300w\" sizes=\"(max-width: 583px) 100vw, 583px\" \/><\/a><figcaption id=\"caption-attachment-38099\" class=\"wp-caption-text\">Create directory for branch<\/figcaption><\/figure><\/p>\n<p>Here in this new directory we shall be cloning the empty branch that we just created. This shall be done using command <code>git clone<\/code>.<\/p>\n<p><figure id=\"attachment_38100\" aria-describedby=\"caption-attachment-38100\" style=\"width: 584px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/04Clone-empty-Git-repository.jpg\"><img decoding=\"async\" class=\"size-full wp-image-38100\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/04Clone-empty-Git-repository.jpg\" alt=\"Clone empty Git repository\" width=\"584\" height=\"364\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/04Clone-empty-Git-repository.jpg 584w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/04Clone-empty-Git-repository-300x187.jpg 300w\" sizes=\"(max-width: 584px) 100vw, 584px\" \/><\/a><figcaption id=\"caption-attachment-38100\" class=\"wp-caption-text\">Clone empty Git repository<\/figcaption><\/figure><\/p>\n<p>Here at first we can see that <code>git branch<\/code> command won&#8217;t show any branch created yet.<br \/>\nSo, we shall be creating a new file, we will use command <code>git add<\/code> and then <code>git commit<\/code> to commit in order to create a branch. Now using command <code>git branch<\/code> will show <i>master<\/i> branch created.<\/p>\n<p><figure id=\"attachment_38101\" aria-describedby=\"caption-attachment-38101\" style=\"width: 583px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/05Add-file-to-master-branch.jpg\"><img decoding=\"async\" class=\"size-full wp-image-38101\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/05Add-file-to-master-branch.jpg\" alt=\"Add file to master branch\" width=\"583\" height=\"363\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/05Add-file-to-master-branch.jpg 583w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/05Add-file-to-master-branch-300x187.jpg 300w\" sizes=\"(max-width: 583px) 100vw, 583px\" \/><\/a><figcaption id=\"caption-attachment-38101\" class=\"wp-caption-text\">Add file to master branch<\/figcaption><\/figure>[ulp id=&#8217;pzgfvmZhgslwSymm&#8217;]<\/p>\n<p>Now we shall use command <code>git remote<\/code> to know the remote name. This remote name shall be required in the next step.<\/p>\n<p><figure id=\"attachment_38102\" aria-describedby=\"caption-attachment-38102\" style=\"width: 581px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/06Git-remote-name.jpg\"><img decoding=\"async\" class=\"size-full wp-image-38102\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/06Git-remote-name.jpg\" alt=\"Git remote name\" width=\"581\" height=\"363\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/06Git-remote-name.jpg 581w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/06Git-remote-name-300x187.jpg 300w\" sizes=\"(max-width: 581px) 100vw, 581px\" \/><\/a><figcaption id=\"caption-attachment-38102\" class=\"wp-caption-text\">Git remote name<\/figcaption><\/figure><\/p>\n<p>Once we have the remote name, <code>git push &lt;remote name&gt; &lt;branch name&gt;<\/code> to push the changes.<\/p>\n<p><figure id=\"attachment_38103\" aria-describedby=\"caption-attachment-38103\" style=\"width: 582px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/07Git-push-changes.jpg\"><img decoding=\"async\" class=\"size-full wp-image-38103\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/07Git-push-changes.jpg\" alt=\"Git push changes\" width=\"582\" height=\"362\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/07Git-push-changes.jpg 582w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/07Git-push-changes-300x187.jpg 300w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/><\/a><figcaption id=\"caption-attachment-38103\" class=\"wp-caption-text\">Git push changes<\/figcaption><\/figure><\/p>\n<p>Now we shall create another branch name, say <i>releasebranch1<\/i>, make some changes and push it to the remote.<\/p>\n<p><figure id=\"attachment_38104\" aria-describedby=\"caption-attachment-38104\" style=\"width: 585px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/08Push-changes-to-new-branch.jpg\"><img decoding=\"async\" class=\"size-full wp-image-38104\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/08Push-changes-to-new-branch.jpg\" alt=\"Push changes to new branch\" width=\"585\" height=\"363\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/08Push-changes-to-new-branch.jpg 585w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/08Push-changes-to-new-branch-300x186.jpg 300w\" sizes=\"(max-width: 585px) 100vw, 585px\" \/><\/a><figcaption id=\"caption-attachment-38104\" class=\"wp-caption-text\">Push changes to new branch<\/figcaption><\/figure><\/p>\n<p>Now that we have our remote branch created, and lets assume all the work that was required from this remote branch is complete, we intend to delete it. For this we shall be using command <code>git push &lt;remote name&gt; --delete &lt;branch name&gt;<\/code><\/p>\n<p><figure id=\"attachment_38105\" aria-describedby=\"caption-attachment-38105\" style=\"width: 583px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/09Delete-remote-branch.jpg\"><img decoding=\"async\" class=\"size-full wp-image-38105\" src=\"http:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/09Delete-remote-branch.jpg\" alt=\"Delete remote branch\" width=\"583\" height=\"364\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/09Delete-remote-branch.jpg 583w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/09Delete-remote-branch-300x187.jpg 300w\" sizes=\"(max-width: 583px) 100vw, 583px\" \/><\/a><figcaption id=\"caption-attachment-38105\" class=\"wp-caption-text\">Delete remote branch<\/figcaption><\/figure><\/p>\n<p>Using the above command shall delete the remote branch.<\/p>\n<h2>3. Conclusion<\/h2>\n<p>In this example, we learnt the usage of <code>git push origin<\/code> command to delete remote branch.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s say our work with remote branch is complete, or let&#8217;s say one of the team was working on a feature which has been completed now and all the changes has already been merged into remote&#8217;s master branch. Now that we have no requirement of remote branch, we might want to delete it. In this &hellip;<\/p>\n","protected":false},"author":75,"featured_media":27377,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1353],"tags":[1457,1489,1454,1490,1453],"class_list":["post-37633","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-git","tag-branching","tag-delete-branch","tag-distributed-version-control","tag-git-delete-remote-branch","tag-version-control"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Git Delete Remote Branch Example - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Let&#039;s say our work with remote branch is complete, or let&#039;s say one of the team was working on a feature which has been completed now and all the changes\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git Delete Remote Branch Example - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Let&#039;s say our work with remote branch is complete, or let&#039;s say one of the team was working on a feature which has been completed now and all the changes\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-10T08:00:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-23T11:45:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Saurabh Arora\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Saurabh Arora\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/\"},\"author\":{\"name\":\"Saurabh Arora\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/5bf4e0274824642c44536b83ddbfaf6c\"},\"headline\":\"Git Delete Remote Branch Example\",\"datePublished\":\"2016-06-10T08:00:01+00:00\",\"dateModified\":\"2019-04-23T11:45:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/\"},\"wordCount\":497,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"keywords\":[\"branching\",\"delete branch\",\"distributed version control\",\"git delete remote branch\",\"version control\"],\"articleSection\":[\"Git\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/\",\"name\":\"Git Delete Remote Branch Example - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"datePublished\":\"2016-06-10T08:00:01+00:00\",\"dateModified\":\"2019-04-23T11:45:40+00:00\",\"description\":\"Let's say our work with remote branch is complete, or let's say one of the team was working on a feature which has been completed now and all the changes\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/examples.javacodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Software Development\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/software-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Git\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/software-development\/git\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Git Delete Remote Branch Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/javacodegeeks\",\"https:\/\/x.com\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/5bf4e0274824642c44536b83ddbfaf6c\",\"name\":\"Saurabh Arora\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/11\/Saurabh-Arora-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/11\/Saurabh-Arora-96x96.jpg\",\"caption\":\"Saurabh Arora\"},\"description\":\"Saurabh graduated with an engineering degree in Information Technology from YMCA Institute of Engineering, India. He is SCJP, OCWCD certified and currently working as Technical Lead with one of the biggest service based firms and is involved in projects extensively using Java and JEE technologies. He has worked in E-Commerce, Banking and Telecom domain.\",\"sameAs\":[\"http:\/\/www.javacodegeeks.com\/\",\"https:\/\/in.linkedin.com\/in\/saurabh-arora-78674b18\"],\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/saurabh-arora\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Git Delete Remote Branch Example - Java Code Geeks","description":"Let's say our work with remote branch is complete, or let's say one of the team was working on a feature which has been completed now and all the changes","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:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/","og_locale":"en_US","og_type":"article","og_title":"Git Delete Remote Branch Example - Java Code Geeks","og_description":"Let's say our work with remote branch is complete, or let's say one of the team was working on a feature which has been completed now and all the changes","og_url":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2016-06-10T08:00:01+00:00","article_modified_time":"2019-04-23T11:45:40+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","type":"image\/jpeg"}],"author":"Saurabh Arora","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Saurabh Arora","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/"},"author":{"name":"Saurabh Arora","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/5bf4e0274824642c44536b83ddbfaf6c"},"headline":"Git Delete Remote Branch Example","datePublished":"2016-06-10T08:00:01+00:00","dateModified":"2019-04-23T11:45:40+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/"},"wordCount":497,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","keywords":["branching","delete branch","distributed version control","git delete remote branch","version control"],"articleSection":["Git"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/","url":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/","name":"Git Delete Remote Branch Example - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","datePublished":"2016-06-10T08:00:01+00:00","dateModified":"2019-04-23T11:45:40+00:00","description":"Let's say our work with remote branch is complete, or let's say one of the team was working on a feature which has been completed now and all the changes","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/09\/git-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/software-development\/git\/git-delete-remote-branch-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Software Development","item":"https:\/\/examples.javacodegeeks.com\/category\/software-development\/"},{"@type":"ListItem","position":3,"name":"Git","item":"https:\/\/examples.javacodegeeks.com\/category\/software-development\/git\/"},{"@type":"ListItem","position":4,"name":"Git Delete Remote Branch Example"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/5bf4e0274824642c44536b83ddbfaf6c","name":"Saurabh Arora","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/11\/Saurabh-Arora-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2015\/11\/Saurabh-Arora-96x96.jpg","caption":"Saurabh Arora"},"description":"Saurabh graduated with an engineering degree in Information Technology from YMCA Institute of Engineering, India. He is SCJP, OCWCD certified and currently working as Technical Lead with one of the biggest service based firms and is involved in projects extensively using Java and JEE technologies. He has worked in E-Commerce, Banking and Telecom domain.","sameAs":["http:\/\/www.javacodegeeks.com\/","https:\/\/in.linkedin.com\/in\/saurabh-arora-78674b18"],"url":"https:\/\/examples.javacodegeeks.com\/author\/saurabh-arora\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/37633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=37633"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/37633\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/27377"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=37633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=37633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=37633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}