<?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>gitignore | SDT 攻城獅區</title>
	<atom:link href="https://sdt.hameba.tw/tag/gitignore/feed/" rel="self" type="application/rss+xml" />
	<link>https://sdt.hameba.tw</link>
	<description>由Steven, Der, Ted 三位高級打字員所組成，是三位工程師(攻城獅)所維護的技術分享平台，或許偶爾會分享一些日常，有任何問題或是錯誤的部分，歡迎留言告訴我們！</description>
	<lastBuildDate>Mon, 09 Dec 2019 17:26:14 +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>gitignore | SDT 攻城獅區</title>
	<link>https://sdt.hameba.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>解決 .gitignore 規則沒有反應</title>
		<link>https://sdt.hameba.tw/317/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e8%25a7%25a3%25e6%25b1%25ba-gitignore%25e8%25a6%258f%25e5%2589%2587%25e6%25b2%2592%25e6%259c%2589%25e5%258f%258d%25e6%2587%2589</link>
				<comments>https://sdt.hameba.tw/317/#respond</comments>
				<pubDate>Mon, 09 Dec 2019 17:19:56 +0000</pubDate>
		<dc:creator><![CDATA[Li Der]]></dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[gitignore]]></category>

		<guid isPermaLink="false">https://sdt.hameba.tw/?p=317</guid>
				<description><![CDATA[<p>不小心把不需要追蹤的檔案上傳到 Git， 後來才到 .gitignore 把檔案加入， 這時候 Git 還是會 &#8230; </p>
<p class="link-more"><a href="https://sdt.hameba.tw/317/" class="more-link">閱讀全文<span class="screen-reader-text">〈解決 .gitignore 規則沒有反應〉</span></a></p>
The post <a href="https://sdt.hameba.tw/317/">解決 .gitignore 規則沒有反應</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></description>
								<content:encoded><![CDATA[<p>不小心把不需要追蹤的檔案上傳到 Git，</p>
<p>後來才到 .gitignore 把檔案加入，</p>
<p>這時候 Git 還是會追蹤的呢。</p>
<p><span id="more-317"></span></p>
<p>首先，我們要先將檔案從 Git 暫存區移除</p><pre class="crayon-plain-tag">git rm --cached &lt;file&gt;</pre><p>接下來就會發現檔案會按照規則排除了！</p>
<p>&nbsp;</p>
<p>參考資料：<br />
<a href="https://shiyousan.com/post/636470505667009340">https://shiyousan.com/post/636470505667009340</a></p>The post <a href="https://sdt.hameba.tw/317/">解決 .gitignore 規則沒有反應</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></content:encoded>
							<wfw:commentRss>https://sdt.hameba.tw/317/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
	</channel>
</rss>
