科尔多瓦项目和git

时间:2014-11-29 20:21:00

标签: git cordova cordova-plugins

我对github很新,所以这可能是一个愚蠢的问题。我有一个cordova项目,我已经创建了一个存储库。 " www"我在创建存储库时将文件夹添加到源。我使用" git add。",但它不会添加我的"平台"或者"插件"文件夹及其内容。所有三个文件夹都在同一级别。知道我可能做错了吗?

由于

1 个答案:

答案 0 :(得分:0)

正如您在“.gitignore for PhoneGap/Cordova 3.0 projects - what should I commit?”中所看到的那样:

  

我喜欢省略平台目录的想法   事实上,我可以排除pluginsplatforms目录   .gitignore的一个很好的起点:

platforms/
plugins/

请注意,standard .gitignore for such directovesJubobs建议in the comments),因为plugin文件夹,例如,将由命令cordova plugin add ...填充。