Switching a branch after aborting current changes in git May 21, 2023 by Tarik Option 1 git checkout -f gh-pages Option 2 git reset --hard # beware: don't make that a habit git checkout gh-pages