Solved, my friend! ![]()
Hi, could you please explain how you solved it? It might help others who are still experiencing the issue. Thanks!
Hi, I simply logged in this morning and the issue was solved, I think by someone from the FreeCodeCamp team.
It kept happening to me, and not only in ‘student database part 2’ but in other ones as well, until I notice something:
- Apparently, when you go back to the course (when you need to load your enviroment back again) or hit Reset, the enviroment pulls from remote source the files with the respective changes/code of the level/lesson you currently are.
- You may apply changes to the file, pass the tests, but when you go to next level the files are deleted.
How I was able to ‘fix’ it, was doing the following:
- After you restablished your enviroment or hit reset, that is, when the files are still there.
- In a bash terminal run “
git status” - add the files you work on with “
git add <file>” - commit the changes with “
git commit -m 'any message here'” - It will ask you to set up your credentials:
git config --global user.email "your@email.com"git config --global user.name "yourusername"
- You do so and then run “
git commit -m 'any message here'” again. - Done, now the files are not going to get deleted anymore and you will be able to proceed with your course.
My wild guess is that at every level it triggers a ‘git reset’ and a ‘git clean’, that’s why the files are deleted. But I’m no expert in it, i just luckily found a ‘go around’ fix for this frustrating issue.
1 Like
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.