I try to execute the command: "touch .gitignore" but it gives me this error
This answer is copied from here
In the command window you can do
type nul > tuarchivo.txt
This will create a file of 0 bytes with the name tuarchivo.txt
Another way to do it is by using the echo command
echo.>tuarchivo.txt
echo. - will create the file with only one empty row inside it.
There is no touch
command included by default in Windows. You can use some equivalent command or install some version for windows.
NOTE: If you want to have a full version of Linux on your machine, you can use the Windows Subsystem for Linux . You can run Linux commands from the command line .