Skip to content

Instantly share code, notes, and snippets.

@dauni
Forked from juliencrn/gitignore.sh
Created January 4, 2024 21:50
Show Gist options
  • Save dauni/22f0c1a3b2f430b786ba9d25f6af8de4 to your computer and use it in GitHub Desktop.
Save dauni/22f0c1a3b2f430b786ba9d25f6af8de4 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