How to prevent loosing git folder after shutdown?

1

I'm using TeaLinux OS, a derivative from Ubuntu.

I just cloned a Git repository, I work on it and shut my PC down.

When I turn my PC on again, I lost the folder.

It happened twice, and now I want some suggestion on how to face this, how to prevent from loosing that folder again?

This happens only on one of my Git folders, the other git folders are working fine.

Saepul Anwar

Posted 2019-08-20T01:37:40.687

Reputation: 11

Not cloning Git repositories under the /tmp/ directory. That's how. – 174140 – 2019-08-20T07:05:25.017

1You have provided no information as to where you saved your repository, what happened in between or whenever you have seen any errors in logs. It seems to be an Indonesia based distribution? As @uprego said make sure not use your temp directory, not to use a LiveCD or some other temporary filesystem for cloning your repository. With the information you have provided there is not much more that can be recommended. – Seth – 2019-08-20T08:36:29.610

Define "lost".. – Thorbjørn Ravn Andersen – 2019-08-20T13:07:27.097

I put the repository in this directory "/opt/lampp/htdocs/". I have cloned some other repository before in the same directory, but this is the first time I lost the folder by sudden after shutting down. The other repo folder are still in the same place and nothing happen. But the last repo that I cloned was disappeared. This disappearance happened twice for the same repo folder. – Saepul Anwar – 2019-08-21T02:55:05.723

No answers