What are the two files .gitignore and .gitattributes on github used for?
怪我咯
怪我咯 2017-05-02 09:26:09
0
3
769

As mentioned, I use github for windows, and these two files will be automatically generated every time I create a project. Can anyone tell me what the use of these two files is? Can it be deleted? How to cancel automatic generation? Thanks!

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(3)
滿天的星座

.gitigonre The file or directory you want to ignore

  • /mtk/ filter the entire folder

  • *.zip Filter all .zip files

  • /mtk/do.c Filter a specific file

.gitattribute is used to set the comparison method of files (commonly used for non-text files)

Reference address: https://git-scm.com/book/zh/v1/%E8%87%AA%E5%AE%9A%E4%B9%89-Git-Git%E5%B1%9E%E6 %80%A7

为情所困

.gitignore is used to ignore files you don’t want to submit to Git

.gitattribute specifies the comparison and merging method of non-text files

巴扎黑

They are all useful. If you open it with a text editor and look at the content, you will know what it is for.
The purpose is as mentioned above.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template