.gitignore file common syntax

1 Ignore the path setting, start writing from the same directory as the .gitignore file

As shown in the figure below,
Please add a picture description
if you need to set all files under the Pods folder to be ignored, you can set it like this

Pods/

Of course you can

Pods/*

If you want to ignore the Pods folder in the Example folder, as shown below,
Please add a picture description
you can set it like this

Example/Pods/*

Of course it can also be set like this

Example/Pods/

If the podfile.lock file is ignored, as shown in the figure

Please add a picture description

then you can set it like this

Example/Podfile.lock

Guess you like

Origin blog.csdn.net/LIUXIAOXIAOBO/article/details/130537315