To create Directive in Angular 4 cli from git
/Angular/projectName $ ng generate directive DirectiveName
should work
[note : DirectiveName is unique not match with component name or module name]
but I am getting Error
Error: More than one module matches. Use skip-import option to skip importing the component into the closest module. More than one module matches. Use skip-import option to skip importing the component into the closest module.