git - .gitignore whitelist * not working correctly -
i have attempted create whitelist in .gitignore file such:
#ignore * #don't ignore directories, can recurse them !*/ #don't ignore files !*/docs #!cmd_mux.vhd !.gitignore !*.vhd !*.v !*.fdo !*.xise
however, git still ignoring cmd_mux.vhd. if uncomment line directly specifies cmd_mux.vhd, works fine.
what's going on here?
you try check-ignore command debug ignore process:
$ git check-ignore cmd_mux.vhd -v .gitignore:7:!cmd_mux.vhd
it should print out pattern (whith enclosing file) affects ignore status of file.
Comments
Post a Comment