How SVN ignores files/folders under Linux
Suppose you want to ignore file temp
1. CD to the directory where temp is located:
2. SVN propedit svn:ignore.
Note: Do not omit the last point (. indicates the current directory), please see below if the error
3. Open file is to ignore the list file (default is empty), each line is an item, enter tempin the file, save exit
4. SVN St View status,temp ? the state has been eliminated.
If the svn propedit svn:ignore. times wrong:Svn:none of the environment variables svn_editor, VISUAL or EDITOR is set, and no ' editor-cmd ' run-time con figuration option was found
Description The default property editor for SVN is not set and is set up as follows:
VI ~/.bash_profile
Append on last line
Export Svn_editor=vim
Save exit and enter command source ~/.bash_profile (make configuration file effective immediately)
After the above steps have been completed, proceed with the method set above
I never knew.SVNHow to use the Ignore command, afterGooglefind, how to use or some, make a record well.
If you want toSVNwhen committing, ignore a file, that is, a file is not committed, you can use
SVN propedit Svn:ignorecommand.
Here is a detailed description of the use steps.
A simple lookSVNofficial documents and some online search information, sometimes really not as good as your own experiment.
SVN propedit Svn:ignoreThe directory name.
Note that in the use of thisSVNbefore you edit the properties, you have to make sure that the following"Directory name"is aSVNversion-controlled directories.
If you want to ignore files in this directory, you can do the following.
For example, to ignore/productunder the directorytest.phpfile. The premise is/productThe directory must beSVNunder version control, andtest.phpfile is notSVNversion control.
SVN StFirst look at the status, it will appear as follows:
? /product/test.php
We need totest.phpThe file is added to the ignore list.
The first time you setSVNThe default editor
Export Svn_editor=vim
Then, usingsvn propedit Svn:ignore,Use the following
SVN propedit svn:ignore/product
This will cause aVIMedit window, which indicates that a file needs to be added to the Ignore list
In the edit window, we write
test.php
Then save, and exitVIMEditor.
This time there will be a hint: property"Svn:ignore"in"Product"is set to the new value.
Represents a filetest.phpof theSvn:ignoreThe property was set successfully.
Then useSVN Stview, it will show:
M Product
We need to submit and then thisSvn:ignoreProperty only Works
SVN ci-m 'Ignoretest.phpfile'
This time, no matter how you modifytest.phpfiles, and then useSVN Stalso does not appear when the modify prompt conforms to theMup.
JPG Change doc
How SVN ignores files/folders under Linux