Thursday, May 18, 2017

[SVN] - Commands from coomand lin

List of useful commands to use SVN from command line.
svn info
Display information about a local or remote item.

svn list
Display list of directories in the repository.

svn up
Update your code from repository.

svn co http://your-svn-repo/your-project-name/[trunk]
Checkout project from server

svn propget svn:externals . > ext.txt
Get externals from folder to file [ext.txt]

svn propset svn:externals -F ext.txt .
Set ignore list of files to commit [need create file with name .svnignore on base folder]

svn propset svn:ignore -F .svnignore .
Set global (recursive) ignore list of files to commit [need create file with name .svnignore on base folder]

svn propset svn:global-ignore -F .svnignore .
Commit only externals from folder
svn commit --depth empty . -m 'Modify externals definition'
Delete property

svn propdel [svn:externals | svn:ignore | ...]
Set externals from file [ext.txt] to folder
svn commit [path-of-files-to-commit] -m 'YOUR COMMENT'
Submit your changes to repository


svn sw http://your-svn-repo/your-project-name/[branch / tag]
Switch your code to another path


svn log --limit 10 | svn log -l 10
Get the last 10 commits 

No comments :

Post a Comment