
我想要的是在终端中运行一个命令来下载Visual Studio git 忽略原始文件,将其保存到.gitignore
我的 Windows 10 机器上打开终端的文件夹中的文件中。
我已经尝试过了:
echo >> .gitignore 'https://raw.githubusercontent.com/github/gitignore/master/VisualStudio.gitignore'
echo >> .gitignore https://raw.githubusercontent.com/github/gitignore/master/VisualStudio.gitignore
答案1
解决方案是:
curl https://raw.githubusercontent.com/github/gitignore/master/VisualStudio.gitignore > .gitignore
亲切的问候