git add .gitignore not take effect

Join .gitignore files, files can also be uploaded to ignore, and then perform the following operation push.

  • git rm -r --cached .
  • git add .
  • git commit -m 'add .gitignore'

Guess you like

Origin www.cnblogs.com/wanderingfish/p/11762784.html