本文介绍了你应该将.gitignore提交到Git仓库吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你认为将gitignore提交到Git repo是一种很好的做法吗?有些人不喜欢它,但我认为它很好您可以跟踪文件的历史记录。是吗?

解决方案

通常情况下, .gitignore 很有用适合每个想要使用存储库的人。有时你会想忽略更多的私人事物(也许你经常创建 LOG 或其他东西,在这种情况下,你可能不想强迫别人。 / p>

Do you think it is a good practice to commit .gitignore into a Git repo?

Some people don't like it, but I think it is good as you can track the file's history. Isn't it?

解决方案

Normally yes, .gitignore is useful for everyone who wants to work with the repository. On occasion you'll want to ignore more private things (maybe you often create LOG or something. In those cases you probably don't want to force that on anyone else.

这篇关于你应该将.gitignore提交到Git仓库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 03:47