Git workflow and rebase vs merge questions

后端 未结 11 2234
春和景丽
春和景丽 2020-11-22 03:09

I\'ve been using Git now for a couple of months on a project with one other developer. I have several years of experience with SVN, so I guess I bring a lot of baggage to th

11条回答
  •  长发绾君心
    2020-11-22 04:05

    "Even if you’re a single developer with only a few branches, it’s worth it to get in the habit of using rebase and merge properly. The basic work pattern will look like:

    • Create new branch B from existing branch A

    • Add/commit changes on branch B

    • Rebase updates from branch A

    • Merge changes from branch B onto branch A"

    https://www.atlassian.com/git/tutorials/merging-vs-rebasing/

提交回复
热议问题