Skip to content

Instantly share code, notes, and snippets.

@heshamelmasry77
Forked from juliencrn/gitignore.sh
Created October 19, 2023 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heshamelmasry77/083f4ba37a4b709e05a7831c853d931c to your computer and use it in GitHub Desktop.
Save heshamelmasry77/083f4ba37a4b709e05a7831c853d931c to your computer and use it in GitHub Desktop.
Remove .idea files from PHPStorm with git & .gitignore
# Remove the file from the repository
git rm --cached .idea/
# now update your gitignore file to ignore this folder
echo '.idea' >> .gitignore
# add the .gitignore file
git add .gitignore
git commit -m "Removed .idea files"
git push origin <branch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment