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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -