简体   繁体   中英

new git branch from existing one without merging with master

I have branch one (not merged yet with master) I want to have branch two which has everything like in one .

Will be git checkout -b two enough?

是的,当您在分支one ,只需执行该命令,就会基于分支one的最后一次提交创建分支two

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