Skip to content

Instantly share code, notes, and snippets.

@octocat
Created February 27, 2014 19:38
Show Gist options
  • Save octocat/9257657 to your computer and use it in GitHub Desktop.
Save octocat/9257657 to your computer and use it in GitHub Desktop.
Some common .gitignore configurations
# 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
@Gangstablue777
Copy link

Nice

@thedinocoder
Copy link

ignore :)

@milan-sahana
Copy link

added a line

.idea

but not ignoring '.idea/php.xml' file
any solution ?

@yeetssite
Copy link

sup

@Benkhardt
Copy link

Benkhardt commented May 30, 2024

added a line

.idea

but not ignoring '.idea/php.xml' file any solution ?

Just add .gitignore to all directories OR if you wnat to ignore a file constantly in your repo just open ".git/info/exclude" and add the certain file(s) to it:
https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files#excluding-local-files-without-creating-a-gitignore-file

@HanzadeLK
Copy link

Thank you

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