Crmgo Blog

Working with an SVN Repository from the Command Line

Working with an SVN Repository from the Command Line

# How to create an SVN repository svnadmin create /svn/repository # How to import a local project into the SVN repository svn import --username=user --password=pass /local/path file:///svn/repository -m "comment" # How to get a working copy (checkout) from the repository svn co --username=user --password=pass svn://hostname/svn/repository /local/path # How to…

Working with an SVN Repository from the Command Line

# How to create an SVN repository
svnadmin create /svn/repository

# How to import a local project into an SVN repository
svn import --username=user --password=pass /local/path file:///svn/repository -m "комментарий"

# How to get a working copy (checkout) from the repository
svn co --username=user --password=pass svn://hostname/svn/repository /local/path

# How to view the change log
svn log --username=user --password=pass svn://hostname/svn/repository

# How to view the log of the last action.
svn log -r HEAD --username=user --password=pass svn://hostname/svn/repository

# How to commit current changes to the repository (while in the project folder)
svn commit --username=user --password=pass -m "комментарий"

# How to get a version for publishing/compilation (without the SVN database)
svn export --username=user --password=pass svn://hostname/svn/repository /local/path

# How to add a folder with files to the repository

svn import --username=tsxxx --password=seexxx ./dba/ https://xxx/xxx/ -m "add new dir with file"

And additionally, in case it comes in handy for someone:

# How to find out which memory slots contain which RAM sticks, their volume, type, etc.
dmidecode -t memory

# To determine which files have been modified

svn status -u

Note: This post may be AI-assisted and then human-edited. Editorial responsibility: Dmytro Lomaka, Kaltenkirchen.

Categories: SVN