I made some errors in my code and I need to do the following to reset it:
git reset --hard 0adf6cdaa45af6b0520de1a54d027be5f1a84f06
I also want to remove everything that has been committed after that. How would I do this to permanently reset the repository to this? That is, if I do $ git pull origin production
, I want nothing to happen because the repository is 'at' the reset position.