0

I had a local repository cloned from a remote one. I made many commits from it but stupidly delete that repository without pushing back to the remote repository. I somehow managed to recover the directory. Now I am wondering whether the commits will also be recovered with the recovery or not ?

1 Answer 1

1

If you didn't push your commits to remote repository and deleted local repository it means that you will not find this commits at repository anymore. If you have any backups it can help you. Other possible way - recover this files from the file system after deletion. It's complicated way and didn't guarantee the full recovery.

Sign up to request clarification or add additional context in comments.

3 Comments

I have recover the repository, now whether the commits will be available or not. I re-installs git.
Recovered deleted repo? Check history, maybe your commits there. Or check git reflog
I pushed the repository to the remote one, all the changes were there, means the commits were also recovered with the local repository.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.