ฉันมีไฟล์หลายไฟล์ในเว็บไซต์ CodeIgniter ที่ฉันต้องการมีใน repo แต่ไม่ได้ติดตามการเปลี่ยนแปลงใด ๆ
ตัวอย่างเช่นฉันปรับใช้การติดตั้งเฟรมเวิร์กใหม่นี้กับไคลเอนต์ใหม่ฉันต้องการดาวน์โหลดไฟล์ต่อไปนี้ (พวกเขามีค่าเริ่มต้น CHANGEME) และฉันต้องทำการเปลี่ยนแปลงเฉพาะกับไคลเอนต์นี้ (ข้อมูลประจำตัวฐานข้อมูลข้อมูลที่อยู่อีเมล CSS ที่กำหนดเอง)
// 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
ปัจจุบันถ้าฉันวิ่ง
git clone git@github.com:user123/myRepo.git httpdocs
และจากนั้นแก้ไขไฟล์ด้านบนทั้งหมดดีมาก git pullจนกว่าฉันจะปล่อยโปรแกรมแก้ไขด่วนหรือแพทช์และเรียกใช้ การเปลี่ยนแปลงทั้งหมดของฉันจะถูกเขียนทับ