Reset git branch to old commit Posted on 10.09.202510.09.2025 by GhitaB git checkout your_branch git log –oneline 98eba8e Wrong commitcc860f6 Wrong commit6ebe41c Wrong commitfb16584 Ok commit038bcd1 Ok commit Reset to latest ok commit: git reset –hard fb16584 git push origin your_branch –force Tags: GitHub, docs, git Category: Docs