LoginSignup
14
12

More than 5 years have passed since last update.

.gitignoreを自動で生成してくれるgibo

Last updated at Posted at 2016-07-04

便利そうなので使ってみた。

windowsの場合、Gitが入っていれば使える。

> cd C:\Users\<Your User>\bin
> git clone https://github.com/simonwhitaker/gibo.git gibo

giboディレクトリのpathを通して動作確認。

> gibo -v
gibo 1.0.4 by Simon Whitaker <sw@netcetera.org>
https://github.com/simonwhitaker/gitignore-boilerplates

> gibo -u
From https://github.com/github/gitignore
 * branch            master     -> FETCH_HEAD
Already up-to-date.

使用できる言語等の確認は
> gibo -l

言語ごとの.gitignoreの確認は、例えばRailsなら

> gibo rails
### https://raw.github.com/github/gitignore/c0de8bc140e3079c93f2970be853d310602a5ddb/rails.gitignore

*.rbc
capybara-*.html
.rspec
/log
/tmp
/db/*.sqlite3
/db/*.sqlite3-journal
/public/system
/coverage/
/spec/tmp
**.orig
rerun.txt
pickle-email-*.html

# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
config/initializers/secret_token.rb
config/secrets.yml

# dotenv
# TODO Comment out this rule if environment variables can be committed
.env

## Environment normalization:
/.bundle
/vendor/bundle

# these should all be checked in to normalize the environment:
# Gemfile.lock, .ruby-version, .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# if using bower-rails ignore default bower_components path bower.json files
/vendor/assets/bower_components
*.bowerrc
bower.json

# Ignore pow environment settings
.powenv

# Ignore Byebug command history file.
.byebug_history

.ignoreファイルの生成は
gibo rails >> .gitignore
のようにすればカレントに生成してくれる。

14
12
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
14
12