I tried this method [https://daily-dev-tips.com/posts/removing-a-env-file-from-git-history/] but still .env file showing on my git repo.
I pushed .env file in git without .gitignore in my node project. how can I remove it from my github?
Asked
Active
Viewed 43 times
-2
-
1The linked article describes 3 different methods. Which one have you tried? – phd May 06 '22 at 18:02
-
I tried all these three methods from that link. still showing .env file in my Github repo. – Ridwan May 06 '22 at 18:47
-
@Ridwan have you pushed all branches to GitHub after removing the file from your local repository? – knittl May 26 '22 at 15:07
1 Answers
1
you have to add it in the .gitignore file
remove it on your local or change its path (you will see changes)
then commit the changes and push them
K.D
- 59
- 5