Skip to content

Instantly share code, notes, and snippets.

@zpetr
Forked from octocat/.gitignore
Last active May 9, 2023 00:31
Show Gist options
  • Save zpetr/e783d537f8a40bb6ec16 to your computer and use it in GitHub Desktop.
Save zpetr/e783d537f8a40bb6ec16 to your computer and use it in GitHub Desktop.
# 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
# IDE files #
#############
nbproject
.~lock.*
.buildpath
.idea
.project
.settings
composer.lock
@ameenross
Copy link

Adding composer.lock is a bad idea. It's not actually generated by an IDE, and some applications require a committed composer.lock. Projects that don't are better off adding it to their local .gitignore.

Copy link

ghost commented Mar 19, 2015

Thanks for adding the .idea -- that was really bothering me, as if the rest of the stuff isn't ideas.

@kisztof
Copy link

kisztof commented Jun 16, 2015

Yep, composer.lock file is made for syncing packages between developers, builds, etc. It should not be placed in .gitignore file.

@jessewriter
Copy link

well this darn .ignore file jacked up my IDE and now it doesn't even know I have a Java projct and doesn't function. how do I tell git to keep all my IDE configuration LOCALLY! and just not push to the repository.

@frederickjh
Copy link

composer.lock should not be in a .gitignore file. It allows you to set the versions you want of packages for a project.

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