简体   繁体   中英

How to 'git pull --rebase' for all Git branches?

How to 'git pull --rebase' for all Git branches?

I need to make git bundle frequently with latest source hence, I run git pull --rebase for each branch manually. When I run git pull --rebase --all I see for current active branch rebased is done but for other branch I see "head is some # commit ahead" this type of message. Is there any git tool running which will result like running git pull --rebase after switching each branch manually?

One, you would need to script that, as it is not supported by Git natively.

Two, as documented in " Modify base branch and rebase all children at once ", you would need to deal with:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM