Skip to content

Instantly share code, notes, and snippets.

@zpetr zpetr/.gitignore forked from octocat/.gitignore
Last active May 6, 2019

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
# IDE files #
#############
nbproject
.~lock.*
.buildpath
.idea
.project
.settings
composer.lock
@keshavagrawal89

This comment has been minimized.

Copy link

keshavagrawal89 commented Sep 17, 2014

Could you add .pyc extension here?

@hugovanelk

This comment has been minimized.

Copy link

hugovanelk commented Sep 21, 2014

Compiled source:

  • target - directory generated in a maven build environment. Contains all the compiled sources and packages.
    Packages:
  • .war
  • .ear
@ameenross

This comment has been minimized.

Copy link

ameenross commented Nov 6, 2014

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.

@ghost

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

Copy link

jessewriter commented Aug 20, 2017

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

This comment has been minimized.

Copy link

frederickjh commented Oct 25, 2017

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
You can’t perform that action at this time.