add git set and reset and undo reset