[git][Add] undo for reset --hard.