-
Notifications
You must be signed in to change notification settings - Fork 1
Create usage
eviweb edited this page Mar 23, 2021
·
4 revisions
git ignore create [-f] [-g] [-d <directory>] [<pattern1>,<pattern2>,...]
In its simplest form, it creates an empty .gitignore
file in the current directory.
-
-f
flag : force the replacement of an existing .gitignore file -
-g
flag : create a global .gitignore file by runninggit config --global core.excludesfile <file>
-
-d <directory>
: specify the target directory in which create the file
you can specify a comma separated list of patterns to include in the generated file.
The pattern names are the ones displayed by the git ignore list
command.
Be aware that pattern names are case sensitive