How to revert changes in custom app from github

I have installed the custom app from github and did some wrong changes. How can i revert those changes back to original custom app from github.

Have you tried commit history comparison?

A little late, but consider using multiple branches like master, current, dev, staging, etc.

The changes are done on local frappe, and I want that custom app which is similar to github repo. how can I resolve this issue without reinstalling the custom app.
I have used commands like
cd apps/app_name
1.git fetch upstream
2.git pull upstream develop
After 2nd command it shows
From Repo link

  • branch develop → FETCH_HEAD
    Already up to date
    3.git reset --hard upstream/develop
    HEAD is now at some_text first commit
  1. bench --site akash.com migrate