0

I'm currently trying to pull from my remote repository into my local rep however, I don't want it to merge with my local changes.

My problem is that I've made changes to my local repository that I'm not happy with and would like to go back to the previous version of my code.

So my question is how can I pull from my current remote repository into my local machine essentially getting back the previous version?

  • 4
    if you're absolutely sure you don't need local changes - `git reset --hard origin/branch`. Also seems a duplicate of this question https://stackoverflow.com/questions/927358/how-do-i-undo-the-most-recent-local-commits-in-git – Renat Oct 17 '22 at 21:44

0 Answers0