Revert git repository on restart