Saya memiliki beberapa file di situs CodeIgniter yang ingin saya miliki di repo tetapi tidak melacak perubahan apa pun pada.
Sebagai contoh, saya menyebarkan instalasi baru kerangka ini ke klien baru, saya ingin file-file berikut untuk diunduh (mereka memiliki nilai default CHANGEME) dan saya hanya perlu membuat perubahan khusus untuk klien ini (kredensial basis data, info alamat email, CSS khusus).
// the production config files i want the files but they need to be updated to specific client needs
application/config/production/config.php
application/config/production/database.php
application/config/production/tank_auth.php
// index page, defines the environment (production|development)
/index.php
// all of the css/js cache (keep the folder but not the contents)
/assets/cache/*
// production user based styling (color, fonts etc) needs to be updated specific to client needs
/assets/frontend/css/user/frontend-user.css
Saat ini jika saya lari
git clone git@github.com:user123/myRepo.git httpdocs
dan kemudian edit file di atas, semuanya hebat. Sampai saya merilis perbaikan terbaru atau patch dan jalankan git pull. Semua perubahan saya kemudian ditimpa.