Last active
September 13, 2019 13:49
-
-
Save rbf/2224744 to your computer and use it in GitHub Desktop.
Global git ignore file for compiled source, packages, logs and databases, vim swap files, Mac OS generated files, Xcode, clojure with leiningen and LaTeX projects. **THIS GIST IS UNMAINTAINED AND ITS CONTENTS HAS BEEN MOVED TO THE FOLLOWING REPO** https://github.com/rbf/dotfiles/blob/master/git/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################### | |
# THIS GIST IS UNMAINTAINED AND ITS CONTENTS HAS BEEN MOVED TO THE FOLLOWING REPO # | |
# https://github.com/rbf/dotfiles/blob/master/git/.gitignore # | |
################################################################################### | |
# To download and add this file to your global git config, run the following command: | |
# if [ -f /etc/gitignore_global ]; then cp -v /etc/gitignore_global /etc/gitignore_global.backup_$(date +"%Y%m%d%H%M%S"); fi; curl -L https://gist.github.com/rbf/2224744/raw/.gitignore_global -o /etc/gitignore_global; git config --system core.excludesfile /etc/gitignore_global | |
# if [ -f ~/.gitignore_global ]; then cp -v ~/.gitignore_global ~/.gitignore_global.backup_$(date +"%Y%m%d%H%M%S"); fi; curl -L https://gist.github.com/rbf/2224744/raw/.gitignore_global -o ~/.gitignore_global; git config --global core.excludesfile ~/.gitignore_global | |
# Original from: http://help.github.com/ignore-files/ | |
# Compiled source | |
#################################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
*.pyc | |
/target | |
/classes | |
# Packages | |
#################################### | |
# it's better to unpack these files and commit the raw source | |
# git has its own built in compression methods | |
*.7z | |
*.dmg | |
*.gz | |
*.iso | |
*.jar | |
*.rar | |
*.tar | |
*.zip | |
# Logs and databases | |
#################################### | |
*.log | |
*.sql | |
*.sqlite | |
*.cache | |
*.tmp | |
# Backups | |
#################################### | |
*.bak | |
*.backup | |
*.bak_20[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] | |
# vim swap files | |
#################################### | |
.*.swp | |
# Mac OS generated files | |
#################################### | |
.DS_Store* | |
ehthumbs.db | |
Thumbs.db | |
# To ignore the icon hidden file added by Mac OS X when the folder has a custom icon, | |
# instead of "Icon?" or "Icon\r", add TWO (sic) CRLF control characters. | |
# (From http://blog.bitfluent.com/post/173740409/ignoring-icon-in-gitignore) | |
# In vi(m) type CTRL-V + CTRL-M to insert one CRLF control character. | |
# Those control characters will then appear in vim as "^M" in blue color to indicate that they are invisible. | |
# (From http://www.bo.infn.it/alice/alice-doc/mll-doc/linux/vi-ex/node15.html) | |
Icon | |
# Xcode generated files | |
#################################### | |
*xcuserdata | |
*.pbxuser | |
*.mode1v3 | |
*.mode2v3 | |
*.perspectivev3 | |
*.xcuserstate | |
project.xcworkspace/ | |
xcuserdata/ | |
# Clojure with Leiningen | |
#################################### | |
/checkouts | |
.lein-deps-sum | |
.lein-failures | |
.lein-plugins | |
.classpath | |
.settings | |
.project | |
.lein-repl-history | |
.nrepl-port | |
# If generating the pom for a Clojure project with Leiningen, add "pom.xml" to the local .gitignore | |
# and regenerate if when needed with "lein pom" | |
# LaTeX | |
#################################### | |
# Original from: https://gist.github.com/kogakure/149016 | |
*.aux | |
*.glo | |
*.idx | |
*.log | |
*.toc | |
*.ist | |
*.acn | |
*.acr | |
*.alg | |
*.bbl | |
*.blg | |
*.dvi | |
*.glg | |
*.gls | |
*.ilg | |
*.ind | |
*.lof | |
*.lot | |
*.maf | |
*.mtc | |
*.mtc1 | |
*.out | |
*.synctex.gz | |
# Sublime Text 2 | |
#################################### | |
*.sublime-project | |
*.sublime-workspace | |
# General folder for untracked files | |
#################################### | |
git-untracked/ | |
# Jekyll | |
#################################### | |
.sass-cache/ | |
# From c9.io gitignore file | |
#################################### | |
.hgignore | |
node_modules | |
.c9 | |
.DS_Store | |
Thumbs.db | |
# C/C++ | |
#################################### | |
*.slo | |
*.lo | |
*.o | |
*.so | |
*.so.* | |
*.dylib | |
*.lai | |
*.la | |
*.a | |
*.lib | |
*.dll | |
*.exe | |
*.out | |
install_manifest.txt | |
CMakeCache.txt | |
CMakeFiles | |
cmake_install.cmake | |
# Python | |
#################################### | |
*.py[cod] | |
.installed.cfg | |
__pycache__ | |
pip-log.txt | |
.coverage | |
.tox | |
nosetests.xml | |
# Ruby | |
#################################### | |
*.rbc | |
*.sassc | |
.sass-cache | |
capybara-*.html | |
.rspec | |
.rvmrc | |
/.bundle | |
**.orig | |
rerun.txt | |
pickle-email-*.html | |
*.gem | |
*.rbc | |
.bundle | |
.config | |
InstalledFiles | |
spec/reports | |
test/tmp | |
test/version_tmp | |
.yardoc | |
_yardoc |
Added bash command to download and install .gitingnore_global file in *nix systems.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Added LaTeX extensions from https://gist.github.com/kogakure/149016