Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 git 中,我有一个父分支 p 和几个基于 p 的分支,称为 a、b、c。我想在单个 git 命令中根据更新的 p 重新设置 a、b 和 c。这可能吗?如果是这样,怎么做?
在你的 .gitconfig 中添加这个:
massrebase = "!sh -c 'for branch in $@; do git rebase $0 $branch; done;'"
接着
git massrebase p a b c