DEV Community

Badri
Badri

Posted on • Updated on

How to revert local branch to the remote branch commit?


git reset --hard origin/upstream_branch_name

This replaces the local branch with remote branch.

Discussion (0)