I created a .envfile with the following line SKIP_PREFLIGHT_CHECK=true within my react app folder to get the app started on my localhost using npm run start. My 5 out of 6 commits contains the .env file. My last commit is the one where I deleted the .env file. i tried to push just that commit without .env file, yet it still shows the same error
todo1\t05-practical-work\backend>git push
Enumerating objects: 57, done.
Counting objects: 100% (51/51), done.
Delta compression using up to 8 threads
Compressing objects: 100% (31/31), done.
Writing objects: 100% (33/33), 6.58 KiB | 1.10 MiB/s, done.
Total 33 (delta 24), reused 0 (delta 0), pack-reused 0
remote: GitLab: File name frontend/.env was prohibited by the pattern ".env$".
To https://gitlab.tamk.cloud/courses/web-software-production-5g00dm04/3003/t05-practical-work.git
! [remote rejected] develop -> develop (pre-receive hook declined)
error: failed to push some refs to 'https://gitlab.tamk.cloud/courses/web-software-production-5g00dm04/3003/t05-practical-work.git'
How can I fix it without losing my current branch and code?