xcodeのgitignoreとrailsのgitignore
Gitでプログラムを管理する時、gitignoreファイルをどう設定するか良く悩む。
最近知ったが、GitHubでは各言語及びOS、IDE、エディタ、フレイムワークごとのgitignoreファイルのTemplateを公開している。
xcodeの設定
下記のコマンドで、現在のディレクトリに.gitignore
が作成される。
wget https://raw.githubusercontent.com/github/gitignore/master/Global/Xcode.gitignore mv Xcode.gitignore .gitignore
railsの設定
下記のコマンドで、現在のディレクトリに.gitignore
が作成される。
wget https://raw.github.com/github/gitignore/master/Rails.gitignore mv Rails.gitignore .gitignore
OSXのgitignore
下記のコマンドで、取得可能。
wget https://raw.githubusercontent.com/github/gitignore/master/Global/OSX.gitignore