gitignore file for indexing a running yacs server
proposal of a set of rules for this mecanism
What should be smart is being able to index a running YACS archive without interference with GIT tracking version of the files.
one solution with GIT is to include a .gitignore file at the root of the indexed project, witch include set of rules to disabled tracking on some files and/or directories.
This solution follow the project so you share the rules with co-workers.
Here is a proposal of a rules set, that exclude files specific to the server installation and not related to software version.
examples : exclude parameters , images, files ... and many more things.
this is the whole set :
<?php# Ignore htaccess at root level only/.htaccess # Ignore parametersparameters/ !parameters/index.php # Ignore images and files sub-folder contentimages/*/ files/*/
# Temporary foldertemporary/ !temporary/index.php # Inbox folder/inbox # Scriptsscripts/run_once/scripts/staging/ #bak files*.bak # Some temporary files from editors*~ *.swp*.svn# OS generated files.DS_Store?ehthumbs.dbIcon?Thumbs.db
with thoses rules you should be able to index a archive while running it into XAMPP for examples. Using GIT branching system, you could jump very fast from one version to another, without managing and storing dozens of folders.
![]() Alexis Raimbault | Alexis Raimbault webmaster free-lance |
| Alexis Raimbault |
