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...127 readsGit - Tips & TricksGitAdd a thoughtful commentNo comments yetBe the first to start the conversation.