💾 Archived View for ait.place › dot › bin › sucksquash.txt captured on 2023-07-22 at 16:51:54.

View Raw

More Information

⬅️ Previous capture (2022-07-16)

-=-=-=-=-=-=-

#!/usr/bin/env bash
git checkout master &&
git reset --hard origin/master && 
for branch in $(git for-each-ref --format='%(refname)' refs/heads/ | cut -d'/' -f3); do
	if [ "$branch" != "master" ];then
		git reset --soft master &&
		git add -A && git commit -m "$branch"
	fi
done