Удалите фиксацию из мастера в Github (удаленно), так что мастером будет ПУСТОЙ
Вы можете создать сиротскую ветвь - сиротская ветвь - это ветвь без истории
# Create "clean" branch
git checkout --orphan <name>
# remove all existing content if you wish
git clean -Xdf && git clean -xdf
создайте новую ветку из master и добавьте в эту новую ветку предыдущий коммит, который был в master.
несколько параметров:
# Option 1 - Start your branch from the last desired commit
git checkout -b <name> <SHA-1>
# Option 2 - Set your branch to the desired commit
git reset <SHA-1> --hard
# Add the required commit on top of your branch
git cherry-pick <SHA-1>
подтолкни его к Гитхубу.
# force the update of the new branch
git push <origin> master -f