I’ve been facing few issues working with git. I’m totally unable to exclude whole content from either /runtime or /vendor folders. Here’s how my .gitignore file looks:
# phpstorm project files
.idea
# netbeans project files
nbproject
# zend studio for eclipse project files
.buildpath
.project
.settings
# windows thumbnail cache
Thumbs.db
# composer vendor dir
/vendor
# cubrid install dir
/cubrid
# composer itself is not needed
composer.phar
# composer.lock in applications is ignored
since it's automatically created by
composer when application is installed
/apps/*/composer.lock
# Mac DS_Store Files
.DS_Store
# phpunit itself is not needed
phpunit.phar
# local phpunit config
/phpunit.xml
# ignore sub directory for dev installed
apps and extensions
/apps
/extensions
#custom
/runtime/
/web
I tried running those commands, but it throws an error saying they are already outside of the repository and the directories keep being tracked thuough.
Have already modified the .gitignore so here´s how it looks:
# phpstorm project files
.idea
# netbeans project files
nbproject
# zend studio for eclipse project files
.buildpath
.project
.settings
# windows thumbnail cache
Thumbs.db
# composer vendor dir
vendor/
# cubrid install dir
/cubrid
# composer itself is not needed
composer.phar
# composer.lock in applications is ignored since it's automatically created by composer when application is installed
/apps/*/composer.lock
# Mac DS_Store Files
.DS_Store
# phpunit itself is not needed
phpunit.phar
# local phpunit config
/phpunit.xml
# ignore sub directory for dev installed apps and extensions
/apps
/extensions
#custom
runtime/
web/