new nc function to git reset