为什么 Git 没有跟踪我的 ionic www 文件夹?

Why is my ionic www folder not being tracked by Git?

我正在使用 Ionic Framework 和 AngularJS 创建一个应用程序。我还在本地和远程 bitbucket 上使用 git 跟踪项目。

我的设置:

$ ionic info

Your system information:

Cordova CLI: 6.3.1
Gulp version:  CLI version 3.9.1
Gulp local:  
Ionic Framework Version: 1.2.4
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0-beta.20
OS: Distributor ID: LinuxMint Description:  Linux Mint 17.1 Rebecca 
Node Version: v0.12.2

我注意到虽然我的提交正在被跟踪,但我的 www 文件夹中的所有内容都没有。在 bitbucket 上,我看到了这个奇怪的外观:

我已经尝试删除 bitbucket 和本地的存储库并重新开始,但仍然没有跟踪 www。正如您在提交的时间戳中看到的那样,这已经困扰我一个多月了。请帮忙!

www 是嵌套的 git 存储库,其 gitlink SHA1 is recorded, or a submodule.
(很可能是前者,因为没有 .gitmodules

如果你想摆脱它,你必须这样做:

git rm www # no trailing slash
git add .
git commit -m "remove www"
git push

然后就可以正常复制回www内容add/track了