💾 Archived View for ait.place › dot › bin › .local › bin › suckrebase.txt captured on 2022-06-03 at 22:57:04.
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
#!/usr/bin/env bash git checkout master && make clean && rm -f config.h && git reset --hard origin/master && git pull && for branch in $(git for-each-ref --format='%(refname)' refs/heads/ | cut -d'/' -f3); do if [ "$branch" != "master" ];then git checkout $branch && git rebase --preserve-merges master fi done git checkout master