Git workflow: forking a project and maintaing a local modified copy, but keep up to date

后端 未结 2 446
醉酒成梦
醉酒成梦 2021-02-02 16:02

I\'m trying to figure out the best workflow for maintaining a local copy of a github-hosted project (moodle) with customizations, while maintaining the ability to keep our copy

相关标签:
2条回答
  • 2021-02-02 16:44

    Yes, it makes sense. Although step #4 can be slightly simplified to git checkout master && git pull --ff-only upstream master.

    The --ff-only ensures that you don't get any merge commits in your pristine copy.

    0 讨论(0)
  • 2021-02-02 16:54

    Makes sense

    ... and if you like, compare with bible :

    a successful git branching model

    0 讨论(0)
提交回复
热议问题