Skip to content

Instantly share code, notes, and snippets.

@unclechen
Created March 31, 2016 02:31
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 unclechen/68cada9f24b323923fbec6539ccf0f7c to your computer and use it in GitHub Desktop.
Save unclechen/68cada9f24b323923fbec6539ccf0f7c to your computer and use it in GitHub Desktop.
通过修改“yourproject/.idea/workspace.xml”来配置ignore文件
/** 手动到项目下的”./idea"文件夹中配置 */
<component name="ChangeListManager">
...
<ignored path="android.iws" />
<ignored path=".idea/workspace.xml" />
<ignored mask="*.iml" />
<ignored path="gradle/" />
<ignored path="build/" />
<ignored path=".idea/" />
<ignored path="YourModuleA/build/" />
<ignored path="YourModuleB/build/" />
<ignored path=".gradle/" />
<ignored mask="*.properties" />
<ignored path="gradlew" />
<ignored path="gradlew.bat" />
...
</component>
@unclechen
Copy link
Author

有的时候在idea编译器下面使用SVN做版本管理时,配置.svnignore不会生效(.gitignore貌似有时也会不起作用)。手动在项目的.idea/workspace.xml中按照上面代码修改即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment