<?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>developer | SDT 攻城獅區</title>
	<atom:link href="https://sdt.hameba.tw/tag/developer/feed/" rel="self" type="application/rss+xml" />
	<link>https://sdt.hameba.tw</link>
	<description>由Steven, Der, Ted 三位高級打字員所組成，是三位工程師(攻城獅)所維護的技術分享平台，或許偶爾會分享一些日常，有任何問題或是錯誤的部分，歡迎留言告訴我們！</description>
	<lastBuildDate>Sun, 12 Jan 2020 17:40:56 +0800</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.3</generator>

<image>
	<url>https://sdt.hameba.tw/wp-content/uploads/2020/02/hameba_favicon-150x150.png</url>
	<title>developer | SDT 攻城獅區</title>
	<link>https://sdt.hameba.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Git 刪除分支</title>
		<link>https://sdt.hameba.tw/476/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=git-%25e5%2588%25aa%25e9%2599%25a4%25e5%2588%2586%25e6%2594%25af</link>
				<comments>https://sdt.hameba.tw/476/#respond</comments>
				<pubDate>Sun, 12 Jan 2020 17:40:56 +0000</pubDate>
		<dc:creator><![CDATA[Ted]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">https://sdt.hameba.tw/?p=476</guid>
				<description><![CDATA[<p>每過一段時間，都要定時清理一下專案上分支的數量，不然時間一長，清理起來會很痛苦，所以這邊紀錄一下 Git 刪除 &#8230; </p>
<p class="link-more"><a href="https://sdt.hameba.tw/476/" class="more-link">閱讀全文<span class="screen-reader-text">〈Git 刪除分支〉</span></a></p>
The post <a href="https://sdt.hameba.tw/476/">Git 刪除分支</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></description>
								<content:encoded><![CDATA[<p>每過一段時間，都要定時清理一下專案上分支的數量，不然時間一長，清理起來會很痛苦，所以這邊紀錄一下 Git 刪除分支的語法。</p>
<p><span id="more-476"></span></p><pre class="crayon-plain-tag"># 刪除 local 的分支
git branch (-d | -D) &lt;branch name&gt;
e.g. git branch -d branch_test
e.g. git branch -D branch_test

# 刪除 remote 的分支
git push &lt;remote_name&gt; :&lt;branch name&gt;
e.g. git push origin :branch_test

git push &lt;remote_name&gt; --delete &lt;branch_name&gt;
e.g. git push origin --delete branch_test</pre><p>上述就是 Git 如何刪除分支的方法，不用懷疑，刪除 remote 分支就是那麼的簡單，只要在想刪除的 remote 分支前面加上 <code>:</code> 就可以了，注意，這邊 <code>:</code> 跟分支之間是沒有空格的喔。</p>
<p>參考資料:</p>
<p><a href="https://git-scm.com/docs/git-branch">https://git-scm.com/docs/git-branch</a></p>
<p><a href="https://stackoverflow.com/questions/2003505/how-do-i-delete-a-git-branch-locally-and-remotely">https://stackoverflow.com/questions/2003505/how-do-i-delete-a-git-branch-locally-and-remotely</a></p>
<div id="gtx-trans">
<div class="gtx-trans-icon"></div>
</div>The post <a href="https://sdt.hameba.tw/476/">Git 刪除分支</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></content:encoded>
							<wfw:commentRss>https://sdt.hameba.tw/476/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
	</channel>
</rss>
