SVN common command summary directory
Article Directory
- Preface
- Recommended reading
- 1. Create a repository
- 2. Start the server
- 3. Start the service
- 4. Take out the warehouse
- 5. Add files
- 6. Submit changes
- 7. Update version
- 8. Server deployment
-
- `LINUX` environment
-
- 1. Download
- 2. Make a warehouse catalog
- 3. Create the `SVN` repository
- 4. Connect
- 5. View service
- 6. Open
- 7. Corresponding script location
- 8. Service Configuration
- 9. Start up and run
- 10. Add files
- 11. Add the entire directory
- 12. Submit
- 13. Change `conf`
- 14. View submitted file information
- 15. Take out
- 16. Update files
- 17. Update all
- 18. View file information
Preface
- This article is only a
SVN
collection of record commands
Recommended reading
- "SVN Definitive Guide"
1. Create a repository
svnadmin create [path]
2. Start the server
svnserve -d -r xxx\subversion
netstat -ano | findstr 3690
: Check if it is activated
3. Start the service
sc create MySVNService binpath='xxx\svnserve.exe --service -r [path]' start=autodepend=Tcpip
4. Take out the warehouse
svn checkout svn://localhost/xx
5. Add files
svn add [filename]
6. Submit changes
svn commit -m "xxx" [filename]
7. Update version
svn update
8. Server deployment
LINUX
surroundings
1. Download
yum -y install subversion
2. Make a warehouse catalog
mkdir -p /var/svn/repository
cd /var/svn/repository
mkdir pro_a
3. Create SVN
Repository
svnadmin create [path]
4. Connect
svn://ip:3690/pro_oa
5. View service
chkconfig | grep svn
6. Open
chkconfig svnserve on
7. Corresponding script location
/etc/rc.d/init.d/svnserve
8. Service Configuration
args="--daemon --root/var/svn/repository --listen-port 3690 --pid-file=${pidfile}$OPTIONS"
9. Start up and run
service svnserve start
servei svnserve status
netstat -anp | grep 3690
10. Add files
svn add [filename]
11. Add the entire directory
svn add
12. Submit
Additional log information:svn commit -m "message" [filename]
13. Changesconf
anon-access = write
- Allow anonymous submission of information
14. View submitted file information
svn list svn://ip:port/dir
15. Take out
svn checkout svn://ip:port/dir
16. Update files
svn update [filename]
17. Update all
svn update
18. View file information
svn info [filename]