I know that git rebase --interactive lets me specify which commits to drop, pick, squash, etc. by presenting me with a text editor in which I modify a list of commands.
I'd like to automate a rebase operation by specifying such a list of commands. Is there a way that I can put these commands into a file and have git rebase use that file instead of requiring me to manually interact with the text editor?