ignore .idea files
Git never ignores changes to tracked files. As it appears as modified, the file
is under version control (the idea/workspace.xml file usually should not be)
and thus changes to it are tracked. Delete it from the index, leaving your
local copy intact with
git rm --cached .idea/workspace.xml
and commit this change. From then on it will be ignored unless you force-add it
back to the repository or change your gitignore settings.
# Remove the file from the repository
git rm --cached .idea/
# now update your gitignore file to ignore this folder
.idea/
# add the .gitignore file
git add .gitignore
git commit -m "Removed .idea files"
git push origin <branch>
Are there any code examples left?
New code examples in category Shell/Bash
-
Shell/Bash 2022-03-27 22:30:33 wise highlight ubuntu
-
Shell/Bash 2022-03-27 22:25:19 how to send a pull request in git
-
Shell/Bash 2022-03-27 21:55:06 how to open terminal in sublime text ubuntu
-
Shell/Bash 2022-03-27 21:25:19 how to switch branch
-
Shell/Bash 2022-03-27 21:20:25 python
-
Shell/Bash 2022-03-27 21:20:04 set user as admin gitlab
-
Shell/Bash 2022-03-27 21:10:09 apache2 mod_jk proxy to tomcat connector
-
Shell/Bash 2022-03-27 20:35:12 chown
-
Shell/Bash 2022-03-27 20:15:08 awk last match