S Soumyakantas-soumyakanta.comยทDec 14, 2023How to Remove Accidentally Pushed .env File in Git HistoryRecently I was implementing Google Analytics to my Next.js portfolio website. I saved my Google measurement ID in a .env file. After all the work, I pushed my .env file directly to the online repository without adding it to .gitignore. It was a whole...1.3K readsGitAdd a thoughtful commentNo comments yetBe the first to start the conversation.