← All files

RUBY .GITIGNORE

GitHub’s official Ruby .gitignore template.

[ DOWNLOAD ][ MARKDOWN ][ SOURCE ]

GitHub’s official Ruby .gitignore template. It is maintained in GitHub’s public template collection and released under CC0-1.0.

USE

  • Copy it to the repository root as .gitignore.
  • Merge it with project-specific patterns; later patterns take precedence.
  • Commit the result so every contributor uses the same rules.

NOTES

  • The template is a starting point; remove patterns you do not need.
  • Generated files should usually stay untracked.

SOURCE

https://github.com/github/gitignore/blob/main/Ruby.gitignore

FULL TEXT

[ DOWNLOAD ]
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
/tmp/

# Used by dotenv library to load environment variables.
# .env

# Ignore Byebug command history file.
.byebug_history

## Specific to RubyMotion:
.dat*
.repl_history
build/
*.bridgesupport
build-iPhoneOS/
build-iPhoneSimulator/

## Specific to RubyMotion (use of CocoaPods):
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# vendor/Pods/

## Documentation cache and generated files:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Environment normalization:
/.bundle/
/vendor/bundle
/lib/bundler/man/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# Gemfile.lock
# .ruby-version
# .ruby-gemset

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

# Used by RuboCop. Remote config files pulled in from inherit_from directive.
# .rubocop-https?--*

VERIFY SHA-256

Download the file, then choose it here. The checksum is compared locally in your browser.

Expected f88885ba4c505a17cc766a113429b3203ee3736e2b26dbcfe26c928019bf7758

CITE

RUBY .GITIGNORE (v1.0, 2026-11-04). Original. https://original.wales/files/gitignore-ruby/ SHA-256: f88885ba4c505a17cc766a113429b3203ee3736e2b26dbcfe26c928019bf7758. Source: https://github.com/github/gitignore/blob/main/Ruby.gitignore.

← All files