Flexible vs static branching (Git vs Clearcase/Accurev)

后端 未结 9 1079
感情败类
感情败类 2020-11-27 12:53

My question is about the way in which Git handles branches: whenever you branch from a commit, this branch won’t ever receive changes from the parent branch unless you f

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 13:24

    I'm not totally clear on what your asking for but it sounds like git's tracking semantics are what you want. When you branch from am origin you can do something like:

    git -t -b my_branch origin/master

    And then future "git pull"s will auto merge origin/master into your working branch. You can then use "git cherry -v origin/master" to see what the difference is. You can use "git rebase" before you publish your changes to clean up the history, but you shouldn't use rebase once your history is public (i.e. other people are following that branch).

提交回复
热议问题