Created
May 30, 2019 13:37
-
-
Save juliencrn/26e6b54105f41470ee27160e1eacb123 to your computer and use it in GitHub Desktop.
Remove .idea files from PHPStorm with git & .gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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> |
Git may require -r flag:
git rm -r --cached .idea/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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