touch mac node js on windows code example
Example 1: touch command in windows
type nul > .gitignore ---This creates empty file and works on windows 10.
Example 2: touch command not recognized in windows
echo.> your_file.txt
type nul > .gitignore ---This creates empty file and works on windows 10.
echo.> your_file.txt