In this post I’ll describe how to reset the changes and discard whatever you have done (maybe you decided the changes weren’t required at all) using Git in Qt Creator. If you already know how to install Git and use it with Qt Creator then continue reading, if not then you should first read this post to get you up on feet.
Select Git / Local Repository / Reset as seen in the picture below:
You will be provided with a list of versions, the top one is the latest. Select it and press OK.
Finally you’ll be asked to confirm if you want to reset the changes. Press Yes to confirm and continue with the latest version.