git bash how to clear unpushed commits code example Example: git clear commits git reset --hard origin