Problem setting up github repository, touch not recognized in CMD
When I get to the step:
touch README
I get the error
'touch' is not recognized as an internal or external command, operable program or 开发者_StackOverflow社区batch file.
What does this mean?
I'm in Win 7 Home Premium command prompt.
Make sure you're working in git bash, not cmd.
The touch
command updates the last-modified timestamp of the file to the current time, or if the file doesn't already exist, creates an empty file with the given name. This command does not exist (by default) in Windows, which is the reason you get that error message.
To get past this step, you can create a file called README
in whatever way you feel most comfortable with. For example, you could use notepad.exe
if you have no better alternative available.
Use this code in CMD and then touch your file
npm install touch-cli -g
精彩评论