I'm using git as part of a script automating a file patch. It goes something like this:
cd "$gitdir"
git checkout original
monodis "$original_dll" > "$ilfname"
git add "$ilfname"
git commit -m "$(date +"%s")"
git checkout modded
git rebase original
# More code here
As you can probably guess - this disassembles a .NET dll and applies a few patches by way of git.
But what happens if there's a merge conflict? Is there a way to "Pause" the script until the rebase is completed?