Hands-on task
This task is step 8 of the course “Everyday Git”
Don't commit secrets
A .env file with passwords was accidentally committed into the /root/project repository. Remove it from version control (keep the file on disk!) and add a .env line to .gitignore so it's never committed again. Make a commit with these changes.
Reference:git
What you'll practise:
- git
- git rm
- --cached
- .gitignore
- secrets