#help (2022-07)
Where to get help about getting help!
2022-07-09
![Alexander Goya avatar](https://secure.gravatar.com/avatar/f1a18ebd2c7a98b33b1413909e27d1c7.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0010-72.png)
Alexander Goya
I cannot get git to remove/ignore the .terraform folder
I’ve added it to the .gitignore file and tried git rm -r --cached .
I’ve also committed after the git rm
![Jeremy (UnderGrid Network Services) avatar](https://avatars.slack-edge.com/2021-12-29/2893240357986_43abb0cb567d0eb2a80a_72.png)
Jeremy (UnderGrid Network Services)
how are you listing it in your .gitignore
file? I typically use the following in mine
# Local .terraform directories
**/.terraform/*
![Alexander Goya avatar](https://secure.gravatar.com/avatar/f1a18ebd2c7a98b33b1413909e27d1c7.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0010-72.png)
Alexander Goya
I’ve tried both .terraform
and .terraform/
![Alexander Goya avatar](https://secure.gravatar.com/avatar/f1a18ebd2c7a98b33b1413909e27d1c7.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0010-72.png)
Alexander Goya
I’ve now completely deleted the folder and committed. Also deleted all the branches besides main
![Alexander Goya avatar](https://secure.gravatar.com/avatar/f1a18ebd2c7a98b33b1413909e27d1c7.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0010-72.png)
Alexander Goya
Still, git wants to push 130 files
![Alexander Goya avatar](https://secure.gravatar.com/avatar/f1a18ebd2c7a98b33b1413909e27d1c7.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0010-72.png)
Alexander Goya
I just deleted the .git directory and git init
‘ed again. Problem fixed
![Jeremy (UnderGrid Network Services) avatar](https://avatars.slack-edge.com/2021-12-29/2893240357986_43abb0cb567d0eb2a80a_72.png)
Jeremy (UnderGrid Network Services)
sounds like you already had the .terraform directory committed to the repo before adding to the .gitignore
. In this case it will not ignore them as they’re already part of the repo history.