Skip to content

Instantly share code, notes, and snippets.

@Joseworks

Joseworks/.gitignore

Forked from octocat/.gitignore
Last active Aug 29, 2015
Embed
What would you like to do?
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# 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
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
@Joseworks

This comment has been minimized.

Copy link
Owner Author

@Joseworks Joseworks commented Jul 15, 2015

Create a global .gitignore

You can also create a global .gitignore file, which is a list of rules for ignoring files in every Git repositories on your computer. For example, you might create the file at ~/.gitignore_global and add some rules to it.

Open Terminal.
Run the following command in your terminal:
git config --global core.excludesfile ~/.gitignore_global

@Joseworks

This comment has been minimized.

Copy link
Owner Author

@Joseworks Joseworks commented Jul 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment