Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Application Program Interviews:AutoCADBEA WeblogicBioinformaticsBizTalk ServerBug Tracking ToolsBugzillaClarify CRMCoding StandardsComputer Aided Design (CAD) DesignerCVSGIMPJMXLINQLoadRunnerMagentoMATLABMicrosoft AccessMicrosoft ExcelMicrosoft OfficeMicrosoft OutlookMicrosoft WordModel View Controller (MVC)OLAPOOADQuickbookRational RobotRDFSchemaSiebelSilkTestSVGTest PlanTesting ToolsUnity 3D DeveloperVRMLWCF SDKWPFXML DOMXPointer
Copyright © 2018. All Rights Reserved
CVS Interview Question:
List main CVS commands?
Submitted by: AdministratorCVSROOT environment variable, setenv CSVROOT (csh) or export CSVROOT= (bash)
If you have changed a file in CVS and want to commit your changes to the repository, type:
cvs commit filename
Checkout package or module:
cvs checkout module
To add a new file to the repository, first create the file in your checked out copy and then type:
cvs add -m'Brief description.' filename
Deleting a file involves similar steps. First delete the file out of your checked out copy, then use cvs remove to mark it as deleted, and then use cvs commit to commit the change:
rm filename
cvs remove filename
cvs commit filename
You can combine the first two steps by using:
cvs remove -f filename
If you want to get a report on what's changed between your copy and the repository, but don't want CVS do actually do anything, use the command:
cvs -n update
To see the differences (in diff format) between a file you've modified and the last committed revision in the repository, use:
cvs diff filename
(You can also give cvs diff multiple filenames or even whole directories and it will produce a series of diffs.) cvs diff takes the standard flags to specify what type of diff to produce, so:
cvs diff -u filename
will produce a unified context diff (the type that most people prefer).
Submitted by:
If you have changed a file in CVS and want to commit your changes to the repository, type:
cvs commit filename
Checkout package or module:
cvs checkout module
To add a new file to the repository, first create the file in your checked out copy and then type:
cvs add -m'Brief description.' filename
Deleting a file involves similar steps. First delete the file out of your checked out copy, then use cvs remove to mark it as deleted, and then use cvs commit to commit the change:
rm filename
cvs remove filename
cvs commit filename
You can combine the first two steps by using:
cvs remove -f filename
If you want to get a report on what's changed between your copy and the repository, but don't want CVS do actually do anything, use the command:
cvs -n update
To see the differences (in diff format) between a file you've modified and the last committed revision in the repository, use:
cvs diff filename
(You can also give cvs diff multiple filenames or even whole directories and it will produce a series of diffs.) cvs diff takes the standard flags to specify what type of diff to produce, so:
cvs diff -u filename
will produce a unified context diff (the type that most people prefer).
Submitted by:
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.