touch file code example
Example 1: command touch in window
type nul > your_file.txt
Example 2: touch command
touch test.txt
// this creates a file called test.txt
Example 3: touch command in windows
type nul > .gitignore ---This creates empty file and works on windows 10.