Learn Git by Building an SQL Reference Object - branches and log disappeared after closing workspace and resuming

Hello, how can one not do the above mentioned course in one try. It’s my second time that I have resumed the course after closing the workspace in gitpod just to find out that my branches (except main) and log has been whiped out. As I check out the log it has this kind of changes:
87f7df9e 780.1
686a0369 Save progress: 770.1
3df062e9 770.1
cde39005 Save progress: 760.1
f98f4a29 760.1

As for the status it has the following changes which are not stages, and which I am unable to stage:
modified: .freeCodeCamp/test/.cwd
modified: .freeCodeCamp/test/.next_command
modified: sql_reference (modified content)

Untracked files:
(use “git add …” to include in what will be committed)
s: 770.1

Does anyone know if there is a way to rebuild the branches and logs, and if there is a way to save the changes one has made before closing the workspace?