SVN Commands
Run each command by adding svn as prefix to execute for the svn server:
The general format is :
svn command_name
Most subcommands take file and/or directory arguments, recursing
on the directories. If no arguments are supplied to such a
command, it recurses on the current directory (inclusive) by default.
Available subcommands:
1.list (ls) ---- for listing the files
svn ls (for current directory)
svn ls diectory_path (for the required directory)
2. mkdir ---- creating directory
svn mkdir (for currentdirectory on the server)
svn mkdir path
3. checkout (co)
svn co url
svn co url/path
4.add
svn add filename
5. svn ci
svn ci -m "commit file" (for commiting all the files at once on the server)
6. svn status
The first column indicates that an item was added, deleted, or otherwise changed.
”
No modifications.
‘A’
Item is scheduled for Addition.
‘D’
Item is scheduled for Deletion.
‘M’
Item has been modified.
‘R’
Item has been replaced in your working copy. This means the file was scheduled for deletion, and then a new file with the same name was scheduled for addition in its place.
‘C’
The contents (as opposed to the properties) of the item conflict with updates received from the repository.
‘X’
Item is related to an externals definition.
‘I’
Item is being ignored (e.g. with the svn:ignore property).
’?’
Item is not under version control.
’!’
Item is missing (e.g. you moved or deleted it without using svn). This also indicates that a directory is incomplete (a checkout or update was interrupted).
’~’
Item is versioned as one kind of object (file, directory, link), but has been replaced by different kind of object.
7. svn up
8.svn log
9. update
You can update to an older revision:
svn update -r 666 file_name
9.cat
Or you can just view the file directly:
svn cat -r 666 file_name | less
10. diff
svn diff -r63 Calculator.py
The general format is :
svn command_name
shivamm@http-189:~/trunk/development/code/Shivam$ svn help
usage: svn <subcommand> [options] [args]
Subversion command-line client, version 1.8.13.
Type 'svn help <subcommand>' for help on a specific subcommand.
Type 'svn --version' to see the program version and RA modules
or 'svn --version --quiet' to see just the version number.
Most subcommands take file and/or directory arguments, recursing
on the directories. If no arguments are supplied to such a
command, it recurses on the current directory (inclusive) by default.
Available subcommands:
- add
- blame (praise, annotate, ann)
- cat
- changelist (cl)
- checkout (co)
- cleanup
- commit (ci)
- copy (cp)
- delete (del, remove, rm)
- diff (di)
- export
- help (?, h)
- import
- info
- list (ls)
- lock
- log
- merge
- mergeinfo
- mkdir
- move (mv, rename, ren)
- patch
- propdel (pdel, pd)
- propedit (pedit, pe)
- propget (pget, pg)
- proplist (plist, pl)
- propset (pset, ps)
- relocate
- resolve
- resolved
- revert
- status (stat, st)
- switch (sw)
- unlock
- update (up)
- upgrade
1.list (ls) ---- for listing the files
svn ls (for current directory)
svn ls diectory_path (for the required directory)
2. mkdir ---- creating directory
svn mkdir (for currentdirectory on the server)
svn mkdir path
3. checkout (co)
svn co url
svn co url/path
4.add
svn add filename
5. svn ci
svn ci -m "commit file" (for commiting all the files at once on the server)
6. svn status
The first column indicates that an item was added, deleted, or otherwise changed.
”
No modifications.
‘A’
Item is scheduled for Addition.
‘D’
Item is scheduled for Deletion.
‘M’
Item has been modified.
‘R’
Item has been replaced in your working copy. This means the file was scheduled for deletion, and then a new file with the same name was scheduled for addition in its place.
‘C’
The contents (as opposed to the properties) of the item conflict with updates received from the repository.
‘X’
Item is related to an externals definition.
‘I’
Item is being ignored (e.g. with the svn:ignore property).
’?’
Item is not under version control.
’!’
Item is missing (e.g. you moved or deleted it without using svn). This also indicates that a directory is incomplete (a checkout or update was interrupted).
’~’
Item is versioned as one kind of object (file, directory, link), but has been replaced by different kind of object.
7. svn up
8.svn log
9. update
You can update to an older revision:
svn update -r 666 file_name
9.cat
Or you can just view the file directly:
svn cat -r 666 file_name | less
10. diff
svn diff -r63 Calculator.py
0 comments:
Post a Comment