, , rebase git rebase -aorting?
git rebase , , -
git rebase feature && echo "Success" || echo "fail" && git rebase --abort
, , , .
, rebase , , - , , , , :
branch=$(git branch | grep '* .*' | sed s/..//); git checkout -b $branch-rebase > /dev/null ; git rebase test-2 > /dev/null && result="Success" || result="fail" ; git rebase --abort ; git checkout $branch ; git branch -D $branch-rebase ; echo $result
( - , ), reban, rebase, . , , .