How to discard local changes and pull latest from GitHub repository
git reset is what you want, but I’m going to add a couple extra things you might find useful that the other answers didn’t mention. git reset –hard HEAD resets your changes back to the last commit that your local repo has tracked. If you made a commit, did not push it to GitHub, and want … Read more