---
title: "RUBY .GITIGNORE"
category: SNIPPETS
date: 2026-11-04
version: "1.0"
format: "TXT"
size: "1.2 KB"
license: "CC0-1.0"
sha256: f88885ba4c505a17cc766a113429b3203ee3736e2b26dbcfe26c928019bf7758
source: "https://github.com/github/gitignore/blob/main/Ruby.gitignore"
download: "https://original.wales/files/snippets/ruby.gitignore"
tags: ["GITIGNORE","GIT","RUBY","OFFICIAL"]
summary: "GitHub’s official Ruby .gitignore template."
canonical: "https://original.wales/files/gitignore-ruby/"
---

# RUBY .GITIGNORE

GitHub’s official Ruby .gitignore template.

## TEXT

*.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?--*

## SOURCE

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