Skip to content

Instantly share code, notes, and snippets.

@Donmclean
Last active September 20, 2015 20:00
Show Gist options
  • Save Donmclean/fa4662930566997af678 to your computer and use it in GitHub Desktop.
Save Donmclean/fa4662930566997af678 to your computer and use it in GitHub Desktop.
.gitignore Resources

Untrack file from Git

Run this code in terminal to remove file that's already tracked by git. (allows .gitignore to do it's job).

git rm --cached [file name goes here]

Add this in .gitignore file

# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Workspace Files #
############
*.idea

# 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

A collection of useful .gitignore templates

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