💾 Archived View for ait.place › dot › bin › suckmerge.txt captured on 2022-07-16 at 13:50:53.

View Raw

More Information

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

#!/usr/bin/env bash
suckdiff &&
git branch -D custom
git branch custom &&
git checkout custom &&
for branch in $(git for-each-ref --format='%(refname)' refs/heads/ | cut -d'/' -f3); do
	if [ "$branch" != "master" ] && [ "$branch" != "custom" ];then
		echo $branch
		git rebase --rebase-merges $branch
	fi
done
make && sudo make clean install &&
git checkout master &&
git branch -D custom &&
make clean && rm -f config.h && git reset --hard origin/master