Due to the recent development server repair, temporarily need to build a CVS under Windows7, use CVSNT, but found that CVSNT Contral Panel can not be used after installation.
Get used to the graphical operation, suddenly I don't know what to do. Had to learn a CVS command line. By the way, CVSNT does not have a graphical interface for sub-users. Everyone uses an administrator user to commit.
1. Install CVS.
Download to a CVSNT, install it, and then restart, you will find that CVSNT Contral Panel cannot be started under Windows7.
In addition, in order to use the command line, you need to add the CVSNT installation directory to the environment variable "PATH", such as C:\\Program Files\\CVSNT
After restarting the computer, in the DOS environment, Enter cvs -v to check if the installation was successful.
Use the command line below to create a Respository
2, create a repository
Want to place the repository. In cvs, the repository consists of many hierarchical files and directories in the computer file system, where you only need to tell the cvs the top level of the hierarchy. For example, my data warehouse is placed in D:\\pcms_cvs.
Use the command in DOS: cvs -d d:\\pcms_cvs init
ok. You are already a cvs administrator. The CVS default administrator username and password are the username and password of your current Windows user.
You can continue to add a project to this repository. However, you cannot create files directly in the repository: you can only use the cvs command to manipulate files.
3, create a simple project (can be done by MyEclipse, that is, share project)
import project, first transferred to the location where the project is saved. For example, my project home is saved under d:\\webserver\\www\\home, and transferred to this directory under DOS.
Use the command:
cvs -d d:\\webserver\\code -m "home" home home initial
d:\\webserver\\code is the location of the data warehouse.
-m "home" is a log message.
The first home is the project name.
The last two markers can now be ignored.
Tip: After creating a good project, you should not delete the contents of the local file immediately. It is best to extract the home project file from cvs to the local and verify whether the files are the same (just use one file). If it looks correct, you can delete the original file
3, manage users and permissions
cvs lsacl view permissions
cvs ls view accessible repositories
cvs passwd -r administrator -a mini Add user mini and bind to administrator mini is user, then prompt to enter this user password
cvs chacl -a reader,writer -u mini Root Set user Permissions (set the user mini to read and write permissions on the repository root)
cvs chacl -a none Set everyone has no permissions
(Note: Use with caution, because everyone has no permission Will not be able to have more permissions, can be set back to everyone has all permissions)
cvs chacl -a all Set everyone has all permissions
Add new users[aaa]:cvs passwd - a aaa Enter, set the password, OK, complete.
Bind [aaa] to [Administrator]: cvs passwd -r administrator aaa Enter, set the password, OK, complete
The password entered in the second time can be different, but the password entered in the second time is the final password.
Delete the user [aaa]: cvs passwd -x aaa Enter, OK, complete
3. Other matters needing attention Item
If you run a command such as cvs passwd, the error is displayed: cvs passwd: No CVSROOT SpecifIEd! Description The warehouse path is not specified.
Then you can add the -d parameter to the command. That is, cvs passwd -r administrator -d d:\\pcms_cvs -a mini.
Easier to configure the environment variable CVSROOT. That is, set CVSROOT=d:\\pcms_cvs and then perform other operations.
-help parameter can call up command help, very useful
I dont know if you noticed it. When we start win7, the logo information of the currently used system
by modifying the registry key to improve the speed of the Internet, this topic is really old enough,
Files cannot be deleted, and we often encounter such situations. This is because
When it comes to wireless networks, the most troublesome thing is the problem of s
Windows 7 hides system partitions
The unknown automatic wallpaper change function
Two ways to ensure the stability of Windows 7 file system
Teach you how to turn off the sound of the small 7 system frequently reading the disk
Modify Windows 7 file associations at once
10 lessons learned by Microsoft through Windows 7
Three steps to improve system performance
Windows 7 features: security and security - Windows Firewall
Win 7 Tips: Let Media Center Support More Video Formats
Windows 7 excellent feature analysis
How to double the performance of the hard disk soft array under w7
How does the win7 system completely uninstall the 2345 input method?
How does Win7 cancel the boot entry? Win7 cancel the boot entry method
How does the Win10 system create a dial-up connection? How to create a dial-up connection for Win10
Microsoft will share Win9 development plan in Build2014
How to force regular changes to Linux passwords
Windows 2000/XP under the circumstance of forced shutdown
Windows XP SP3 Chinese version contains download address
Win8.1 taskbar and desktop does not respond to the repair method
How to install VPN in CentOS system
How to solve the Windows 8 system resource manager suspended animation problem