How laravel upload git ignore files you do not want to submit

1. In the following files in the root directory has a file  .gitignore  

.gitignoreFiles to ignore changes to the folder specified file or files are recorded in the .gitignoredocuments in the file or folder, can not be tracked to git, in other words, overlooked files will not be put to a remote repository inner.

That is, if the file already exists in the remote repository, is not by .gitignoreto ignore the file.

2. The content shown in FIG.

 

3. Syntax Specification

1, or a blank line to # beginning of the line that is a comment line is ignored. 

2, may be added in front of the forward slash / to avoid recursion, the following example can be seen apparent difference between the next. 

3, can be added after the forward slash / to ignore folders, such as build / ignoring the build folder, / doc / build / This directory will be ignored. 

4, you can use! To ignore the negative, that is, such as in front with a * .apk, then use! A.apk, then the A. APK will not be ignored. 

5, to match * zero or more characters, such as * [OA] to ignore all ".o" or ".a". End;

 6, [] is used to match any one character in brackets, such as [abc ], may be added in parentheses connector, such as [0-9 ] to match the number 0 to 9;

 7 ,? to match a single character.

 

Guess you like

Origin www.cnblogs.com/yaoliuyang/p/12340234.html
Recommended