Fixed. Gitignore not working
background
If you want to upload files to gitlab, you need to add a directory to the.gitignore file that does not need to be uploaded. If you go to git status again, you will see that the.gitignore file that you do not want to upload has been changed.
The solution
If you want to update your.gitignore file, you can do this:
Git rm -r -- cached.git add. Git commit -m'update .gitignore'
Copy the code
The next time you submit, you won’t see unwanted files again.