简体   繁体   中英

git: our team is working on several branches at the same time. how can we update those branches from master?

we work on a project which has master branch, development branch and some feature branchs. each user working on different branch and we are all merge them into development. in order for other users to get the lastest up from the other branch, is it right for them to merge development into their branch?

example:

Development  -> A - somework1
Development  -> B - somework2
Development  -> C - somework3

now A has been merged into Development branch

should we merge development branch into B and C so those two will be a ware of somework1 that has been done in A?

thanks

Oak

I do this all the time, it works out for us.

The other option would be to rebase your branch onto Development.

Branch A can be merged directly into B and C; there is no reason to go through the Development branch. But, if A is already back onto Development, then merging Development back into B and C works as well.

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