Is it possible to git rebase and skip all conflicts?

Viewed 1801

Is it possible to git rebase without having to manually call git rebase --skip for each individual conflict. Can you just call something like git rebase --skip all?

1 Answers

I guess you could try with a bash while:

while [ true ]; do git rebase --skip; if [ $? -eq 0 ]; then break; fi; done

So, you will be cycling issuing git rebase --skip every single time that git stops with a problem.... when it does not end with a problem (in which case I assume it would have an exit code of 0), then the while will break

Related