How to Reset Git Branch to Origin Version

I get asked a lot from the developers “how do I reset a branch in Git”, This is very easy to do if you did not pushed the branch to the origin yet. You can reset the branch to the upstream branch by using the following commands.