在windows中创建.gitignore 1.先创建gitignore.txt 2.打开命令行,到gitignore.txt目录下输入cp gitignore.txt .gitignore,修改成功,把原来的txt删除即可

NoSuchKey