dpprx26000 2013-05-07 17:12
浏览 33
已采纳

Git分支帮助/建议

I think I'm not quite grasping the reason behind branches in Git.

I'm developing an application which makes use of a framework.

Could I run two branches one with the app and another branch for the framework? Or should I branch away when I want to update the framework, fix any possible bugs and then merge it back in?

Thanks!

  • 写回答

4条回答 默认 最新

  • douke1942 2013-05-07 17:20
    关注

    Branches are for organizing different aspects of development on a project.

    For example: You have your framework working. You decide that you want to reorganize the code for a new feature or want to work on a feature that you aren't sure about releasing. So you create a branch and work on it there. Meanwhile, you find that your framework has a bug in it. You are able to go back to the original branch, create the bug fix and release that.

    You can have multiple avenues of development going on at the same time keeping them separate until you are ready to do something with them.

    The use case that you are talking with an app and a framework would be to have seperate repositories for those. Rather than branching.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大