Skip to content

Instantly share code, notes, and snippets.

@jaksonmoura
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save jaksonmoura/788a278294cea8dc63c2 to your computer and use it in GitHub Desktop.

Select an option

Save jaksonmoura/788a278294cea8dc63c2 to your computer and use it in GitHub Desktop.
Adicionar uma lista para ignorar de forma global ao Git

Crie o arquivo ~/.gitignore_global

e rode:

git config --global core.excludesfile ~/.gitignore_global

depois cole isto:

.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# ===== RAILS =====

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

## Environment normalisation:
/.bundle
/vendor/bundle

# these should all be checked in to normalise 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment