Search code examples
gitapache.htaccessgitignore

What is the usual approach, should we skip .htaccess file from git repository


Should we add .htaccess file in .gitignore, how we manage this file?


Solution

  • Whether you add .htaccess to .gitignore depends on whether you want the .htaccess file tracked in your Git repository or not. You have to decide this for yourself, noone can tell you this really.