Tag: SVN

WebSVN i nieistniejące repozytorium Repos 1

Po instalacji WebSVNa, można zauważyć że mamy pojedyncze repozytorium o nazwie "Repos 1". Takie repozytorium oczywiście nie istnieje. Aby je usunąć musimy wyedytować następujący plik:

/etc/websvn/svn_deb_conf.inc

Odnajdujemy następującą linijkę:

$config->addRepository("repos 1", "file:///var/svn-repos");

Musimy ją zakomentować:

//$config->addRepository("repos 1", "file:///var/svn-repos");

i tyle :)

Repozytorium "Repos 1" już nie będzie nam straszyć w WebSVNie.

How to remove Subversion(SVN) directories (folders)

Sometimes it would be nice to be able to copy SVN project without .svn/ directories. The easiest way is to use little bash script:

find -name "\.svn" -exec rm -rf {} \;

It is even better when used as na alias (so we don't need to remember it). Just put it into .bash_aliases in home dir (~/):

alias clean_svn="find -name "\.svn" -exec rm -rf {} \;"

Use with caution!
Execute this alias only in your app base directory. When executed in home dir (or any other) will recursively remove all .svn/ directories!

Copyright © 2024 Closer to Code

Theme by Anders NorenUp ↑