I have a project repository on bitbucket with master branch. This branch has some commit that have been committed by my team (the latest commit was not committed by me).
I just did the git push --force
without knowing that it would delete all the commit after the latest pull I did. So now my team's commit just deleted and the latest commit was the git push --force
I just did.
Is there a way I could recover my team's commit after I did the
git push --force
?
I have read some solution and it says by doing git reflog
then doing git reset –hard HEAD@{HEAD-NUMBER}
. But I'm afraid, could it recover the latest commit or just recover my latest commit (not the latest commit that my team did) ?