Using PHPStorm, am to ignore workspace.xml pops every-time try make git commit. .gitignore like: /.idea/ .idea/workspace.xml at point file committed, I've executed: git rm --cached .idea/workspace.xml then committed removal, pushed a bare repo. the file popping later I changes the project.
Please sure you put ".idea/workspace.xml" the .gitignore file cover your ".idea" directories. other word: ".idea/workspace.xml" files be child one parent directory contain .gitignore. you create .gitignore most top-level directory the project.
Below a recommended .gitignore setup the .idea folder. . User-specific files (e.g., workspace.xml, tasks.xml) be ignored, they store individual preferences, .
Delete .idea/workspace.xml file your project directory. Stage deletion running git add -A. Commit deletion running git commit -m "Remove .idea/workspace.xml repo". Conclusion. adding .idea/workspace.xml your .gitignore file, can prevent from appearing your Git commits.
Tracking local to workspace.xml file cloning repo be prevented the git update-index --assume-unchanged .idea/workspace.xml command. to revert setting: git update-index --no-assume-unchanged .idea/workspace.xml could a workaround can add the README the project.
在决定是否将 .idea/workspace.xml 添加到 .gitignore 中之前,让我们先来看看添加和不添加的影响。 添加到 .gitignore. 如果将 .idea/workspace.xml 添加到 .gitignore 文件中,Git 将忽略此文件的任何更改。这意味着无论你如何修改 workspace.xml 文件,Git 都不会跟踪它的更改。这 .
It list the files usual. Check path idea folder files. was ./.idea/workspace.xml. Notice ./.idea; Modify above suggested command the accepted answer git rm --cached -r ./.idea will see rm '.idea/workspace.xml' the files be removed.
In .gitignore, have .idea/workspace.xml - obviously, .idea in working folder too. have $ git rm --cached .idea/workspace.xml this remove file Git vc. However, seems work - workspace.xml popping the default list is not ignored.
When enable version control your project, IntelliJ IDEA automatically moves workspace.xml file your personal settings the .gitignore list avoid conflicts other developers' settings. Configuration files processed to choice. you modify project settings, a configuration file created .
workspace.xml - file serves . Let's a at the .gitignore file include: ### IntelliJ IDEA ### .idea *.iws *.iml *.ipr /out/ .DS_Store src/.DS_Store. this approach, can our source code clean project independent. main disadvantage is necessity perform project setup every team .
Gitignore | Qué es y cómo usar | Para qué sirve | GitHub