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!
.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.