Loading....
save

How to reset a Git branch to a previous commit?

clock icon

asked 2 months ago

message icon

4

eye icon

481

I messed up my local branch. I want to reset it to match `origin/main` exactly. What commands should I use?

4 Answers

1

Please log in to answer this question

Top Questions