- First, create a new command-line .gitignore file.
touch .gitignore
- Then Notepad to open.
- Copy and paste the following:
node_modules/
.project
unpackage/
.DS_Store
-
You can also use direct .gitignore file hello-uniapp template uniapp in the warehouse address is: DCloud / hello-uniapp / .gitignore
-
Note : If you already submitted unpackage folder before it needs to execute the following command line:
git rm -r --cached unpackage