Chris Straw
SHARE:

Git – remove local commits

When I accidentally merge my branch into develop, I forget the command to remove (reset) any local commits.

git reset --hard origin/branch_name_here