0

Im updating a static image resource that was being cached across a few branches. Is there a way I can make a commit of the new folder in each branch without checking in/out each branch?

4

1 回答 1

0

不,但您可以在某种程度上编写操作脚本。在一个分支中进行更改,然后假设该更改的提交 ID 为$COMMIT,请执行以下操作:

for BRANCH in branch1 branch2 branch3 ...; do
    git checkout $BRANCH
    git cherry-pick $COMMIT
done
于 2013-04-30T19:31:28.807 回答