Svn add and commit only directories
When we work in SVN, at times we need to commit only the directory structure by ignoring files inside the directory, its not all that tricky we can do that in just two steps!
This svn add command, adds the 'mydir' directory by ignoring files in it.
Enter inside 'mydir' and follow up above command with these:
Thats it, you've done. But wait, you have another way to acheive the same.
but this will add only 'mydir' to svn without adding sub directories it has.
This svn add command, adds the 'mydir' directory by ignoring files in it.
svn add -N mydir
Enter inside 'mydir' and follow up above command with these:
svn propset svn:ignore '*.*'
svn commit -m "Adding only directories to svn by ignoring files"
Thats it, you've done. But wait, you have another way to acheive the same.
svn add --depth=empty mydir
but this will add only 'mydir' to svn without adding sub directories it has.
Comments (0)