<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0' gd:etag='W/&quot;D0MEQX8zcSp7ImA9WhJWGU0.&quot;'><id>tag:blogger.com,1999:blog-8810612223188778787</id><updated>2012-08-25T23:36:40.189+09:00</updated><category term='git'/><title>プログラミング備忘録</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bibo-p.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8810612223188778787/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://bibo-p.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>funayoi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;D0MEQXw6fip7ImA9WhJWGU0.&quot;'><id>tag:blogger.com,1999:blog-8810612223188778787.post-6637716912907047075</id><published>2012-08-25T22:12:00.000+09:00</published><updated>2012-08-25T23:36:40.216+09:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-08-25T23:36:40.216+09:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='git'/><title>Gitで除外ファイルを指定する</title><content type='html'>&lt;h3&gt;
課題&lt;/h3&gt;
Macで自動生成される .DS_Store などの不要なファイルをGitリポジトリに追加しないようにする。&lt;br /&gt;
&lt;h3&gt;
解法&lt;/h3&gt;
特定のファイルをGitリポジトリに追加しないように設定するには、リポジトリのトップディレクトリに .gitignore というファイルを作成して、そこに除外したいファイルの名前を列挙する。&lt;br /&gt;
また、ローカルマシン上の全部のリポジトリに適用したい場合には、ホームディレクトリに&amp;nbsp;.gitignore&amp;nbsp;ファイルを置く。&amp;nbsp;.DS_Store&amp;nbsp;はホームの .gitignore に書いておくとよい。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8810612223188778787-6637716912907047075?l=bibo-p.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8810612223188778787/posts/default/6637716912907047075?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8810612223188778787/posts/default/6637716912907047075?v=2'/><link rel='alternate' type='text/html' href='http://bibo-p.blogspot.com/2012/08/git.html' title='Gitで除外ファイルを指定する'/><author><name>funayoi</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>