放在仓库根目录下即可。比如你的仓库在“D:\MYREPO”,位置就是“D:\MYREPO\.gitignore”. 模板可从GITHUB上COPY一份。 转载于:https://www.cnblogs.com/runliuv/p/3482103.html