Sabtu, 08 Februari 2014

Top 10 Most useful cvs commands in linux/unix



This article is in continuation of my earlier article Top 10 basic networking Commands in Unix  and 10 tips of working fast in unix  to read more see here 10 tips of using find command in linux.





Here is my list of most useful commands in Linux , its important that we know this and use it regularly while working with files folders which is in CVS.







Checking out code

cvs co –A folder or filename ( -A means head , this will checkout from head)

cvs co -rtag1 folder or filename (-r means tag or branch, this will checkout from tag "tag1")

cvs co -rbranch1 folder of filename ( checking out from cvs branch)



Adding new file in CVS

CVS add filename (adss  file provided by filename into CVS)

Cvs commit –m “subject” filename (commit recently added or already added file into CVS)





Updating file from CVS

Cvs update filename (update file name from where it has downloaded e.g. head or branch)

cvs update -A filename ( update file from head)

cvs update -A test.java (update file test.java from head)





Checking status of file

cvs status filename (shows status of filename from where it has downloaded etc)

cvs status test.java (shows cvs status of file test.java)



Review a file's history tags

cvs log test.java | less  (This is most useful cvs command it helps to find out all the tag and cvs          branches a file has present)



CVS Help

cvs –help  (Important to know this command provides all information related to cvs commands)



Difference between two CVS tags

cvs diff -rtag1 -rtag2 

(Shows difference between two CVS tags tag1 and tag2 for a particular CVS module , you can run this command by going into that module or from CVS root directory by providing module name e.g. cvs diff –rtag1 –rtag2 project/currentproject )



I hope this short tutorial and list of cvs commands will be useful for you guys. This list is by no means complete so please share how are you using cvs in unix or Linux.



If you are using MySQL as your database you may find my MySQL command tutorial series useful.























Source:http://javarevisited.blogspot.com/2010/10/here-is-my-list-of-most-useful-commands.html

Tidak ada komentar:

Posting Komentar