Setting environment variables under MAC and using CVS command line

Source: Internet
Author: User

Mac setting environment variables and using the CVS command line:

Set environment variables at the command line:
bogon:~ yanfa$cvsroot=:p Server:username@serveraddress:/home/cvsroot
bogon:~ Yanfa$export Cvsroot
However, this is only valid for the current shell, and if you restart the shell, you must set the environment variable again. The way to make it permanent is:
bogon:~ yanfa$ Vim ~/.bash_profile
Enter Export cvsroot=:p server:username@192.168.0.100:/home/cvsroot
Press ESC and then: Wq Save quit Vim
Let the configuration take effect:
bogon:~ yanfa$ Source ~/.bash_profile

Then CVS login enters the password and logs on to the CVS server.

Get code:
CVS Co directory name (this should be known beforehand)

To commit the modified code:
CVS Commit directory Name

Import all directories and files in the current directory into the warehouse:
CVS Import-m the name on the log message server (preferably the same as the current directory name) anyname1 anyname2

Change Directory Name

How the Mac system displays and hides files
command to display Mac hidden files: Defaults write Com.apple.finder appleshowallfiles YES
To hide a mac hidden file command: Defaults write Com.apple.finder appleshowallfiles NO
After you've finished, click Enter to exit the terminal and restart the finder.
Restart Finder: Mouse click the Apple flag in the top left corner of the window--> Force exit-->finder--> reboot


Turn from: http://hi.baidu.com/shui_lin/item/1faa1455e5884c3795eb05e2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.