uni-app stepped pit - gitignore ignore submit unpackage folders to a git repository

  • 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
Published 59 original articles · won praise 78 · views 20000 +

Guess you like

Origin blog.csdn.net/PrisonersDilemma/article/details/103022452