Guys, if your env file is nested into folder front or server , you should to write full path , fro example git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch front/.env" HEAD
thanks man. best and most simple tutorial on the internet :). this works with any type of file, not just .env - So you could probably change your title
bro can u help me. i already deploy my webiste on netlify with my .env file in there and suddenly when i follow ur steps to hide the .env files, my website that has been deployed before crash because cannot read my api key on .env file
I am hosting my website on AWS EC2, It is still running my website using the old version of my git repository which had .env file. So if something like this is possible in netlify, then you can try that.
bro can you help me. i already deploy my app with my .env in there and suddenly when i follow your steps my website that i was already deploy cannot read my api key in my .env files
First, make sure you have a backup of your repository in case anything goes wrong. git push --force origin If you no longer have the original branch and need to restore it, you can recreate the branch from the commit that existed before the removal process. Identify the commit hash of the commit that you want to restore and run the following command: git branch git push origin
Bro it's literally 1 AM and I was frustrated with all of these things. Because of this video I am going to get a good night sleep. Thanks Brother❤❤
These kind of comments make me happy, don't forget to subscribe 🙏🏻
Haha this is so relateable
Guys, if your env file is nested into folder front or server , you should to write full path , fro example git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch front/.env" HEAD
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch .env" HEAD
ty
thanks man. best and most simple tutorial on the internet :). this works with any type of file, not just .env - So you could probably change your title
Glad you liked it, I appreciate your feedback! And I know but I've made this tutorial specifically for env file
Thanks work delete .env from repository
thanks bro u saved my time
Glad I could help
Thanks it really helps
Thanks so... much. it was very helpful
You're welcome!
In my case the secret is in filesystems file, is it overall .env?
Wow life saviour , thanks dude
Glad to help
Thank you this is really helpful.
Awesome! Show support by liking, sharing and subscribing🙏🏻
Thank you mate, appreciate your work
Thank you for the support
how did you get suggestion/recommandation when writting in the terminal ?
Using Powershell v7.3.5, it gets integrated with vscode automatically
Thank u bro, this is the one ive been looking for.
bro can u help me. i already deploy my webiste on netlify with my .env file in there and suddenly when i follow ur steps to hide the .env files, my website that has been deployed before crash because cannot read my api key on .env file
I am hosting my website on AWS EC2, It is still running my website using the old version of my git repository which had .env file. So if something like this is possible in netlify, then you can try that.
Bro, you saved my life!
Thanks, Man! Super helpful👍
Glad it helped!
Thankyou man
Happy to help
bro's a lifesaver!
Man. You really going to Heaven for this
Thanks for the help 🤝
Life saver, thank you!
You're welcome
bro can you help me. i already deploy my app with my .env in there and suddenly when i follow your steps my website that i was already deploy cannot read my api key in my .env files
did u ever fix this?
what if it's not a single file but rather a folder that I accidentally pushed?
git rm -r --cached folder_name
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch folder_name" HEAD
git push --force
Thank you!!
Awesome, thank you!
Sure thing!
Thanks, brother. Very helpful!
This is really helpful man I appreciate it!
Glad I could help
my hero!
Glad it helped you!
you're a top g. great video
Appreciate it!
superr
Subscribe for more, new video soon!
thank you very much
Thank you so much!
thank you
thanks
thanks a bunch
love you
Thanks dude
Sure thing, plenty more to come. Make sure to subscribe
@@devstuff92 yep
how to reverse this I had problem in it
First, make sure you have a backup of your repository in case anything goes wrong.
git push --force origin
If you no longer have the original branch and need to restore it, you can recreate the branch from the commit that existed before the removal process. Identify the commit hash of the commit that you want to restore and run the following command:
git branch
git push origin
Thanks so much!