使用/H指令 

xcopy \Jenkins\workspace\m-node-edu \temp\test\ /Y /E /H /exclude:exclude.txt

 

XCOPY复制文件夹(包括隐藏的.git文件夹)_Jenkins