<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>delete git branch Archives - Info Spot</title>
	<atom:link href="https://info-spot.net/tag/delete-git-branch/feed/" rel="self" type="application/rss+xml" />
	<link>https://info-spot.net/tag/delete-git-branch/</link>
	<description>Info Spot blog</description>
	<lastBuildDate>Fri, 29 Nov 2024 18:47:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>

<image>
	<url>https://info-spot.net/wp-content/uploads/2024/11/cropped-icon-32x32.png</url>
	<title>delete git branch Archives - Info Spot</title>
	<link>https://info-spot.net/tag/delete-git-branch/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Git: Delete a Git branch locally and remotely</title>
		<link>https://info-spot.net/git-delete-branch/</link>
					<comments>https://info-spot.net/git-delete-branch/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 23 Feb 2024 14:11:22 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[delete git branch]]></category>
		<category><![CDATA[git branch]]></category>
		<category><![CDATA[git delete]]></category>
		<guid isPermaLink="false">https://demo.peregrine-themes.com/bloghash/default/?p=65</guid>

					<description><![CDATA[<p>First, you need to make sur that the repository is not currently on the branch to be deleted:&#8230;</p>
<p>The post <a href="https://info-spot.net/git-delete-branch/">Git: Delete a Git branch locally and remotely</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>First, you need to make sur that the repository is not currently on the branch to be deleted:</p>



<pre class="wp-block-code"><code>git checkout main</code></pre>



<p>To delete a local branch that has been fully merged, you can use&nbsp;<code>git branch -d</code>:</p>



<pre class="wp-block-code"><code>git branch -d branch-to-delete</code></pre>



<p>To delete a local branch that has not been fully merged, you must use <code>git branch -D</code> (force delete):</p>



<pre class="wp-block-code"><code>git branch -D branch-to-delete</code></pre>



<p>To delete a remote branch, use&nbsp;<code>git push --delete</code>. Assuming that the remote is named&nbsp;<code>origin</code>, you would use the command:</p>



<pre class="wp-block-code"><code>git push origin --delete branch-to-delete</code></pre>
<p>The post <a href="https://info-spot.net/git-delete-branch/">Git: Delete a Git branch locally and remotely</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://info-spot.net/git-delete-branch/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
