-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.subversion
80 lines (45 loc) · 1.91 KB
/
README.subversion
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
################################################################################
# Subversion revision control cheat-sheet
################################################################################
# A good first resource is simply:
% svn help [command]
# For general subversion information and documentation look at:
http://subversion.tigris.org
# Subversion Book:
http://svnbook.red-bean.com
# Check out a project
% svn co svn://server/path-to-repo/{trunk,branches,tags} destination
so for the current vpic setup do:
% svn co svn://tuxfan.lanl.gov/vpic/trunk vpic
This will create the directory "vpic" in the current working directory and
populate with the source from the main trunk. Subsequent subversion
operations will not require the server, path, or tag to be specified.
# Update your local copy
% svn update
This will attempt to merge the contents of the repository with your local copy.
For documentation of the output try:
% svn help update
# Check the status of your local copy
% svn status
# Add a file or directory to the repository
% svn add full-path-to-target
example:
% touch testdirectory
% touch testdirectory/test.cpp
% svn add testdirectory
This will add revision control information to the directory and add the file.
# Commit changes to your local copy
% svn commit -m "commit message"
# Remove a file or directory from the repository
% svn rm testdirectory
This will remove both the directory and any contents.
# Move or rename an existing file or directory
% svn mv testdirectory newdirectory
This will rename "testdirectory" and move its contents to "newdirectory". A
successful commit will delete the original directory and its contents.
# Edit directory properties
% svn propedit svn:property-to-edit
example:
% svn propedit svn:ignore .
This will open an editor session using the editor specified by the
environment variable SVN_EDITOR (I think that this defaults to vi if unset).