I am working on git and I forgot to git fetch before pushing. What happened is all files are deleted including my local files. On the logs says they are stripped. I tried reverting but nothing happens. Can anyone help me?
Edit: BTW, our git host is bitbucket
If you are pushing to a git hosting site (GitHub, BitBucket), you would need to contact that site to restore those stripped commits.
As I mentioned before, reflogs aren’t accessible from those upstream repositories.
See for instance “bitbucket stripped git revisions“.
If you have access to the upstream repo, then reflogs can help you, as in “restoring lost commits“.