0
为什么git忽略my/bower_components文件夹?这将提交/ bower_components /引导,但没有文件夹的内容,或任何bower_components其他文件夹。为什么git忽略my/bower_components文件夹?
git add --all
git commit -m "adding bootstrap"
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
git clean -ndX
Would remove App_Data/packages/NoGit.0.0.8/node_modules/nogit/node_modules/globa
l-tunnel/node_modules/
dir bower_components
Volume in drive C is BOOTCAMP
Volume Serial Number is 28B2-7D02
Directory of c:\Projects\Blog6\Publish\Latest\bower_components
10/31/2014 10:00 PM <DIR> .
10/31/2014 10:00 PM <DIR> ..
10/31/2014 10:00 PM <DIR> angular
10/31/2014 10:00 PM <DIR> angular-route
10/31/2014 10:46 PM <DIR> bootstrap
...
我创建了自己的.gitignore文件,只是为了看它是否有助于问题。但事实并非如此。
# Compiled source #
###################
*.com
*.pdb
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
出于某种原因,内容并没有拷贝过来。 THey不应该是空的,但他们是:(非常感谢! – Hoppe 2014-11-01 03:24:35