DEV Community

loading...

How to revert local branch to the remote branch commit?

Badri
Updated on ・1 min read


git reset --hard origin/upstream_branch_name

This replaces the local branch with remote branch.

Discussion (0)