0

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?

JellicleCat
  • 28,480
  • 24
  • 109
  • 162
  • 4
    You can probably change [GIT_SEQUENCE_EDITOR](https://git-scm.com/docs/git-config#Documentation/git-config.txt-sequenceeditor) to use a program instead. What interactive rebase do you need to repeat often enough that it could be automated? – Schwern Oct 11 '22 at 23:36
  • 1
    What are you _really_ wishing to do? – matt Oct 12 '22 at 01:43
  • 1
    https://stackoverflow.com/a/12395024/7976758 Found in https://stackoverflow.com/search?q=%5Bgit%5D+non-interactive+rebase – phd Oct 12 '22 at 14:48

0 Answers0