Tagging steps for a tutorial?

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

提交回复
热议问题