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

后端 未结 2 445
醉酒成梦
醉酒成梦 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.

提交回复
热议问题