Improve usage of git reset