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