我的.gitignore
文件有什麼問題?我的gitignore有什麼問題?
build/
/build
/*/build/
/*/*/build/
build/
這是我的目錄結構:
myroot
FacebookSDK
+--src
+--build
+--foo
+-- bar
app
+--scr
+--build
build
+--other stuff...
+--other stuff..
.gitignore
other stuff...
的問題是,FOO和酒吧沒有忽視!
可能是什麼回事?
xxxxs-my:xxxx xxx$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: FacebookSDK/FacebookSDK.iml
modified: FacebookSDK/build.gradle
modified: FacebookSDK/build/intermediates/bundles/debug/classes.jar
modified: FacebookSDK/build/intermediates/bundles/debug/res/drawable/com_facebook_button_blue.xml
你已經提交這些目錄嗎?如果你這樣做了,你必須刪除你的GIT的「構建」存儲庫,在「構建」和其他子文件夾將被正確忽略後 – Matthieu