how to remove the the commits from git bash code example Example: git clear commits git reset --hard origin