How to fix fatal: bad revision 'HEAD~5' in Git | DevErrors