or /foo/), you won't be able to exclude anything inside that folder.īut if you ignore elements (files and folder) recursively ( * or **), and exclude folders from gitignore rules (again through recursive rule !*), then you can exclude (white-list) files. It should work although like already said, ignoring gitignore can be counter-productive if your repo is shared by multiple users. git add -all git commit -m 'ignoring gitignore' git push -set-upstream origin master. In both cases, ' recursively' is the key term which explains why exclusion rules can apply: if you ignore a folder (like. gitignore in your gitignore file, try the following, git rm -r -cached. Im using 1.9.4.msysgit. gitignore and it includes every non-empty subdirectory under my named directory. (with or without -all) in my directory full of source files and.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |