сбросить ветвь в другую ветвь

git reset --hard master # master can be any other branch that is already contained in current branch
Destroyer of seg faults