1 Ignore the path setting, start writing from the same directory as the .gitignore file
As shown in the figure below,
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,
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
then you can set it like this
Example/Podfile.lock