Before you even start coding, create a .gitignore file. Add *.txt , .env , and config/ to ensure these files never get tracked by Git. 2. Environment Variables