Create a .gitignore file on Windows

Create a .gitignore file on Windows

在Windows系统下,创建一个.gitignore文件时,会提示必须输入文件名字You must type a file name.

解决办法:

  1. 输入名字.gitignore. , 注意后面多了个 .
  2. 用Git bash, touch .gitignore

Leave a Reply

Your email address will not be published.