What to include in gitignore for a Laravel and PHPStorm project?

前端 未结 4 959
挽巷
挽巷 2021-02-07 09:42

I\'m going to be collaborating on a project using Laravel and PHPStorm. After doing some research and working on a few projects, here is the .gitignore I\'ve come u

4条回答
  •  我寻月下人不归
    2021-02-07 10:01

    I use this smart .gitignore file ;) , Hope it may help someone:

    /node_modules
    # ignore log files and databases
    *.log
    *.sql
    *.sqlite
    # ignore compiled files
    *.com
    *.class
    *.dll
    *.exe
    *.o
    *.so
    # ignore packaged files
    *.7z
    *.dmg
    *.gz
    *.iso
    *.jar
    *.rar
    *.tar
    *.zip
    # ignore OS generated files
    ehthumbs.db
    Thumbs.db
    .DS_Store
    .DS_Store?
    ._*
    .Spotlight-V100
    .Trashes
    # ignore Editor files
    *.sublime-project
    *.sublime-workspace
    *.komodoproject
    _ide_helper.php
    /.idea
    /.vscode
    # Eclipse project files
    .buildpath
    .project
    .settings/
    # Ignore cache
    .cache/
    # Ignore user created files :)
    *.bak
    *.orig
    # Ignore system files
    .bash_history
    LICENSE_AFL.txt
    LICENSE.html
    LICENSE.txt
    LICENSE_EE*
    RELEASE_NOTES.txt
    .ssh/
    error_log
    .htpasswds
    /.htaccess
    php.ini.sample
    .modgit/
    _vti_bin/
    _vti_cnf/
    _vti_inf.html
    _vti_log/
    _vti_pvt/
    _vti_txt/
    tmp/
    php.ini
    _old/
    .htpasswds/
    .htpasswd
    .viminfo
    .profile
    .bashrc
    .bash_logout
    .modman/
    pkginfo
    nohup.out
    Homestead.yaml
    Homestead.json
    /.vagrant
    .phpunit.result.cache
    #Laravel Specific files
    /vendor
    .env
    /public/.htaccess
    /storage
    storage/*.key
    

提交回复
热议问题