您可以在推送时指定完整的refspec:
git push origin 17081fa:branchname git push origin 30854d2:branchname # etc
如果你想稍微自动化它,你可以编写一个等待你的按键的litte shell循环:
for hash in $(git rev-list 17081fa^..12ba64e); do read -p "Pushing $hash. Press return to continue."; git push origin $hash:branchname; done