git 过滤检出包含windows平台不兼容文件
//windows freertos git clone zu3 仓库
git clone --no-checkout "ssh://keynes@192.168.XX.XX:29418/XilinxMpsoc" && scp -p -P 29418 keynes@192.168.XX.XX:hooks/commit-msg "XilinxMpsoc/.git/hooks/"
cd XilinxMpsoc
git config core.protectNTFS false # 禁用路径保护(解决 Windows 保留关键字问题)
//git sparse-checkout init
git sparse-checkout init --cone
//替换sparse-checkout过滤文件
git checkout master
//增加hook msg
git add.
git commit
git push origin HEAD:refs/for/master //服务器提交