I'm trying to ignore the build folder in my project, I've tried adding the svn:ignore
property recursively to it, added in to Settings > Version Control > Ignore Files
, from the right click menu under Subversion I can't choose the Ignore option, it's greyed out. After I've done all that when I choose commit directory on the project the build folder still shows up. What's the correct way to make the folder be ignored?
Use: svn pg -R svn:ignore . See Stack Overflow question How do I view all ignored patterns set with svn:ignore recursively in an SVN repository? This shows the relative path with all files ignored by SVN in a working copy of a folder structure.
To ignore files in subversion you want to set the svn:ignore property. You can see more here http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.ignore.html about half way down. svn propset svn:ignore target . svn propedit svn:ignore .
I am new to Android Studio too. I tried this method to not use plug-in nor command lines. Only uses Android Studio interface (version 1.5.1).
I have a project with several modules, each of them with a build folder. If this is your case, can avoid wasting too much time and try one module. Test if this process is successful and apply to all of them.
First you see build folder in green color because it's attached to svn repository. Right click it and choose Subversion - Revert. This process is unrelevant because all files in this folder will be rebuilt next time you build your project. If you dare, can mark all folders that must be ignored in order to be reverted. Once Revert finishes, folder names are showed in brown color
Now local.propeties file can be right-click and choose Subversion > ignore local.properties
Compile your project an try commit - make some change at any source to force compile and build your project.
Finally commit directory from project (right click project and choose Subversion - Commit Directory...). This final step allows test that now, it is really faster because these excluded resources doesn't appear in commit accept dialog
When you add files or folders to VCS they are added to the Default Changelist. Move the files and folders you wish to ignore into a different Changelist (perhaps called ignored). Finally, only commit the Default Changelist and ignore the ignored Changelist.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With