学习erlang时,我正在关注牛仔的HTTP框架文档,以设置简单的服务器。我知道项目结构是由erlang.mk
驱动的。现在我想将代码提交给git存储库。.gitignore
文件的推荐条目是什么?我做了一些谷歌搜索,但找不到任何指南。
我的猜测和考虑因素是:
## From GitHub template:
.eunit
deps
*.o
*.beam
*.plt
erl_crash.dump
ebin/*.beam
rel/example_project # Is this a template?
# Shouldn't I ignore entire rel directory?
.concrete/DEV_MODE
.rebar
## erlang.mk specific?
_rel # Not sure what this is, but looks generated.
*.d # These are generated by Make, right?
.erlang.mk # It is referred to as temp directory in erlang.mk file.
这有意义吗?
我假设您已经在github上找到了这个.gitignore。
请注意,您不想排除rel
,因为配置文件将有一部分版本。根据经验,请忽略隐藏的文件,使用_
预处理的目录,deps
,ebin
。因此,除了rel
上的条目外,您的忽略文件看起来不错。我还将在您开始使用COONMO_TEST编写测试后立即包括logs
。
此外,由于您不使用钢筋,也可以删除.rebar
。