Recovering after a bad force push
You ran `git reset --hard HEAD~3` on your feature branch by mistake and then force-pushed. The 3 commits are gone from the remote branch. How can you get them back from your own machine?
Discussion 0
Join free to post in the discussion.
Related questions
- CI vs Continuous DeliveryDevOps Engineer
- Undoing a commit already pushed to mainDevOps Engineer
- What set -euo pipefail doesDevOps Engineer
- Rebase vs mergeDevOps Engineer
- Trunk-based developmentDevOps Engineer
- Where GitHub Actions workflows liveDevOps Engineer
- GitLab CI stagesDevOps Engineer
- Why keep a Jenkinsfile in the repoDevOps Engineer