.gitignore文件属于哪里? [英] Where does the .gitignore file belong?

查看:137
本文介绍了.gitignore文件属于哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.gitignore文件是否属于.git文件夹结构中的某处或主源文件? 放置。 gitignore在 working 目录中。如果将它放在.git(存储库)目录中,它不起作用。

  $ ls -1d .git * 
.git
.gitignore


Does the .gitignore file belong in the .git folder structure somewhere or in the main source files?

解决方案

Put .gitignore in the working directory. It doesn't work if you put it in the .git (repository) directory.

$ ls -1d .git*
.git
.gitignore

这篇关于.gitignore文件属于哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆