So I made some changes to my git repo and commited them. Put them on server and now the server crashes. I did a git reset Hard to an earlier commit "12345". I then found the issues and fixed. So now I want to back to the last commit "abcd".
Example
1st commit
....
commit "12345"
....
commit "abcd"
I did a reset Hard to "abcd" then made my fixes to the code. But now when I try to push I get this error.
"... prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes before pushing again. "
So how do I scrap everything and get local and remote back to commit "abcd"?
===== UPDATE ===================
I tried git push and I get "Everything up-to-date".
UPDATE:
OK here is a visual graph of my commits
* 731e9 (HEAD, origin/beta-stag, beta-stag) <--- last commit HERE
* 5c82f More whitespace
* 8939c More whitespace test
* f3bd1 Added whitespace after git pull origin beta stag and then a git fetch. Now adding whit
* d2336 did a pull origin beta-stag as it will NOT let me pushbs
* 5a2f9 After reset hard. This commit is after I went to the end commit minus whitespace one. The
* 18393 Added whitespace to see if my revert will let me push
| * 36e9d0f (origin/beta, heroku/master, beta) removed assigned_dealer2_id
| * 75203 removed @ar.assigned_dealer2 refernces
| * 784a6 removed check for service tier
| * 77789 removed hidden field can not view call history
| * ee6d8 First commit not from beta-stag
| * 55905 Merge branch 'beta-stag' into beta
| |\
| | * cd7c4 Random changes
| * | e6d92 Merge branch 'beta-stag' into beta
| |\ \
| | |/
| | * 4dc81 (I NEED TO HERE!!! Damn everything else on origin/master)Changed dealer min to 1 for any high level deliveries like bolt
| | * d73f5 Added name so when dealer 2nd is selected we show by name not id
| | * f3afc Switched to dealer email in the 2nd dealer dropdown as some dealers have two phones.
........
1st commit here