我想开始在BitBucket存储库中对上面描述的代码进行版本化。我在BitBucket中创建了一个存储库。
以上两种选择都有可能吗?
我是BitBucket的新手。我正在使用它的网络前端。我不知道如何配置命令行访问,所以请尽量不要引用Bitbucket命令。抱歉,如果我听起来很混乱。
请帮帮忙。
发布于 2020-04-27 23:00:50
我知道这是个老问题,但无论如何,原则上我建议:
- The export from the SQL db should be to text files so they are easily 'diffable'
- You might as well make the export to a sub-directory within the shell scripts repo so that everything is in one place and can't get out of sync
- So you only have one branch, not a separate one for server shell scripts and db
理想情况下,您有一个测试服务器,这意味着您需要一种将更改从repo推送到SQL的方法。我想您可以使用脚本来完成这个任务,但是可以删除服务器设置并从文本文件中重新创建它。
因此,基本上,您不能将SQL直接连接到bitbucket。您需要脚本才能从回购中读取和写入数据库。
https://stackoverflow.com/questions/52087014
复制相似问题