LoginSignup
6
6

More than 5 years have passed since last update.

.gitignoreについてのメモ

Posted at

What's .gitignore ?

gitignoreとは、git で無視するファイルを指定するファイルです。
例えば、iOSだったらframeworksとか誰でも入れられるものはアップロードとかしなくても良いものなのでそれだけgitにあげないでおく。とか。

giboを使おう!

gibo → gitignore-boilerplates の略
giboは.gitignoreをつくってくれるよ。

まずはinstallから。

$ brew install gibo

きほんのき

「githubが考える、その言語についての.gitignoreのベストプラクティス」を作る時は、

$ gibo 言語名

複数のものを選択する時は、
例えば、"Macが出すDS_Storeとかいうゴミファイルいらねー"とか、

$ gibo OSX Swift >> .gitignore

giboの後ろに並べるだけ。

おまけ

"."から始まる不可視ファイル、ディレクトリを見たい時のcommand

//true可視化
$ defaults write com.apple.finder AppleShowAllFiles true
//falseで不可視化
$ defaults write com.apple.finder AppleShowAllFiles false

DS_Storeとかいうファイルはディレクトリを開くたびに生成されるみたいで本当に嫌い。
テキストエディタで開く時とかなんじゃこいつ!って思ってましたから。

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6