reset file to state x commits ago