your branch is ahead of master by 2 commits: how to discard commits

127 阅读1分钟

git reset --hard HEAD~2