Copy file and its entire history

后端 未结 6 1487
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-03 06:40

Myself and another developer are developing an API accessed by other code. As we change the behaviours of the API to better suit our needs, we release additional versions of

6条回答
  •  孤独总比滥情好
    2021-01-03 07:13

    A more standard way would be to only have one api.php file, and use branches and tags to mark new versions.

    As for serving the files : if you want to offer several versions of your api to your users, use some deployment process to checkout and build specific versions of your api, rename and move as you wish, and set public access to this - not to your dev tree.

提交回复
热议问题