git file ignore

In the project directory, there are many file directories that are unchanged for ten thousand years, such as css, js, images, etc. Or there are some documents that do not want to be submitted to the remote warehouse, at this time we can use the "ignore files" mechanism to meet the requirements

Ignore files need to create a file named.

Note: This file has no file name, so there is no way to create it directly in the windows directory, you can use the command line Git Bash touch command to create

常见规则
/文件夹名/				  过滤整个文件夹
*.zip		   			 过滤所有.zip文件
/文件夹名/文件名.后缀	                    过滤某个具体文件
文件名.后缀				 不过滤具体某个文件

Guess you like

Origin www.cnblogs.com/licha233/p/12723781.html