How do I fast-forward other tracking branches in git?

后端 未结 4 647
星月不相逢
星月不相逢 2020-12-15 15:58

We are working with the model of a single remote repository that all of us use. We branch for new features and reintegrate into a trunk branch. Our workflow is that we shoul

4条回答
  •  再見小時候
    2020-12-15 16:52

    I think the easiest way to avoid the git checkout trunk, git pull, git checkout branch cycle is to use this answer:

    git fetch upstream trunk:trunk
    

    This does exactly what you want - fast-forward your local branch trunk to the remote branch's HEAD.

提交回复
热议问题