You can undo your latest changes by using the following two commands:
1. git reset --hard [previous Commit SHA id]e.g. git reset --hard bea3c1e2. git push origin [branch Name] -fe.g. git push origin master -f
1. git reset --hard [previous Commit SHA id]
e.g. git reset --hard bea3c1e
2. git push origin [branch Name] -f
e.g. git push origin master -f