Tagging steps for a tutorial?

后端 未结 2 1170
醉酒成梦
醉酒成梦 2021-01-14 01:13

I want to write a python and django tutorial and combine this with hands on exercises. The tutorial will consist of a list of tasks to do: Step 1, Step 2, Step 2.2.... It wo

相关标签:
2条回答
  • 2021-01-14 01:33

    You could use a branch for every version, instead of using tags. If, for example "4" bases ond what you did in "2", you create a branch from "2" and commit your changes in "4".

    Here's an example repository:

    Example git repository

    Steps to get this structure:

    • Created 1 from master
    • Switched to 1
    • Deleted master git branch -d master
    • Created and switched to 2. (git checkout -b 2)
    • Created and switched to 2.1.
    • Switched back to 2
    • Created and switched to 3
    0 讨论(0)
  • 2021-01-14 01:38

    I've tried exactly this for a tutorial of mine with 5 stages. It's annoying to maintain and people have to understand git properly just to learn the subject which was, as I discovered, not necessarily true with a large audience. I'd recommend you go with a dumber approach and duplicate the code into multiple directories, one per stage.

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