Github project, intended to show evolution, how to manage forks/branches?

前端 未结 1 368
日久生厌
日久生厌 2020-12-07 05:24

I have a GitHub project which does the same thing (a simple RogueLike game demo, an @ moving around a hardcoded map) in several different languages:

I p

相关标签:
1条回答
  • 2020-12-07 05:42

    You have to fork the project.

    Forking means: cloning on the GitHub side, which allows you to have your very own code base for the SimpleRL project (to which you cannot push directly, because you aren't one of the direct contributors)

    With a fork, you will be able to:

    • clone it locally and make any branch you want to isolate your refactoring/enhancements
    • push any of those branch back to your SimpleRL fork on GitHub (ensuring that others can see those new features and clone/test them themselves)
    • update your fork with any evolution from the initial SimpleRL repo (you will need to add it as a remote).
    • contribute back through pull request, provided your new code isn' too much different from the original one. This is not mandatory. If your evolutions are both massive and better, your fork on GitHub could end up being the new default reference for the SimpleRL project.
    0 讨论(0)
提交回复
热议问题