COMMUNITY
°øÁö»çÇ×ÅäÅ©¹Ú½º°¶·¯¸®Áñ°Üã±âÀÚ·á½Ç±¤°í
°ü½É ¹®¼­ ¼öÁý
°ü½É ¹®¼­ ¼öÁý
°ü½É ¹®¼­ ¼öÁý °Ô½ÃÆÇ ÀÔ´Ï´Ù
CVS ¸í·ÉÀÇ Á¾·ù
GoodBug http://www.jakartaproject.com
À̹ÌÁö ½½¶óÀÌ´õ º¸±â

 

¢Â  CVS ¸í·ÉÀÇ Á¾·ù ¢Â

¸í·É¾î (µ¿ÀǾî)                   ¸í·É¼³¸í
¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡
login                         CVS ¼­¹ö·Î ·Î±×ÀÎ
logout                       .cvspass ÆÄÀÏ¿¡¼­ ÀúÀå¼Ò Á¦°Å
import                       ÇÁ·ÎÁ§Æ® ÆÄÀÏ µî·Ï
checkout (co, get )    ÇÁ·ÎÁ§Æ® ÆÄÀÏ °¡Á®¿À±â
commit  (ci)               ÇÁ·ÎÁ§Æ® ÆÄÀÏ ¼öÁ¤ ÈÄ CVS¼­¹ö¿¡ ¹Ý¿µ
update (up)               CVS ¼­¹öÀÇ ÃֽŠ¹öÁ¯À» ÀÛ¾÷ µð·ºÅ丮¿¡ ¹Ý¿µ
add (new)                 ÆÄÀÏ ¶Ç´Â µð·ºÅ丮 Ãß°¡
remove (rm, delete)    ÆÄÀÏ »èÁ¦
diff                           ÆÄÀÏ ¹öÁ¯¿¡ µû¸¥ Â÷ÀÌÁ¡ ºñ±³
log (rlog)                  ÆÄÀÏ ·Î±× º¸±â
annotate (ann)          Çະ Á¤º¸ Ãâ·Â(ÀÛ¼º ³¯Â¥, ÀÛ¼ºÀÚ µî)
status                      ÆÄÀÏ »óÅ º¸±â
history                     °¢Á¾ È÷½ºÅ丮 º¸±â
tag (freeze)              ÇÁ·ÎÁ§Æ® ÆÄÀϵé űëÇϱâ
rtag                          ÀúÀå¼Ò µð·ºÅ丮¿¡ űëÇϱâ
release                    ¸ðµâ release
¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡

 

¢Â  login
  # cvs -d :pserver:leejh@172.16.10.84:2401/data/cvs login
  .profile ¿¡ export CVSROOT=:pserver:leejh@172.16.10.84:2401/data/cvs Ãß°¡
  # cvs login ¸¸À¸·Î ·Î±×ÀÎ °¡´É

 

¢Â  ÇÁ·ÎÁ§Æ® ÆÄÀÏ µî·Ï
  # cvs import -m "Intranet ÇÁ·ÎÁ§Æ® ½ÃÀÛ" Intranet project start
  >> Repository ¿¡ Intranet µð·ºÅ丮°¡ »ý±â¸é¼­ Intranet µð·ºÅ丮ÀÇ ³»ºÎ¿¡
        ÇÁ·ÎÁ§Æ® ÆÄÀÏÀÌ µé¾î°¡°Ô µÈ´Ù. (À§¿¡¼­´Â Intranet ÀÌ ¸ðµâ¸íÀÌ µÈ´Ù.)
        -m ¿É¼Ç µÚ¿¡´Â ÀÚ½ÅÀÌ Àû°í ½ÍÀº ¸»À» ÀûÀ¸¸é µÈ´Ù.

        ±× ´ã¿¡ ¿À´Â project ¿Í start ´Â º¥µå ÅÂ±×¿Í ¸±¸®Áî ű׸¦ ÀǹÌÇϴµ¥
        Å©°Ô Áß¿äÇÏÁö ¾ÊÀ¸¹Ç·Î ¾Æ¹«¸»À̳ª ÀûÀ¸¸é µÈ´Ù.
        ¸¸¾à ȯ°æ º¯¼ö¸¦ µî·ÏÇÏÁö ¾Ê¾Ò´Ù¸é -d ¿É¼ÇÀ» »ç¿ëÇØ¾ß ÇÑ´Ù.
 # cvs -d :pserver:leejh@172.16.100.84:/data/cvs import -m "Intranet ÇÁ·ÎÁ§Æ® ½ÃÀÛ"_

               Intranet project start

 

¢Â  ÇÁ·ÎÁ§Æ® ÆÄÀÏ ¹Þ¾Æ¿À±â
  # cvs checkout Intranet
      ·Î±×ÀÎÈÄ IntranetÀÇ ÇÁ·ÎÁ§Æ® ÆÄÀÏ ¹Þ¾Æ¿À±â

 

¢Â  ¹Þ¾Æ¿Â ÆÄÀÏÀ» ¼öÁ¤ÇÑ ÈÄ Repository ¿¡ ¹Ý¿µÇϱâ
  # cvs commit -m "main.c ÆÄÀÏ ÁÖ¼® Ãß°¡" main.c
  >> -m ¿É¼Ç µÚ¿¡´Â º¯°æÇÑ ºÎºÐ¿¡ ´ëÇÑ ¼³¸íÀ» Àû´Â´Ù.
  >> -m ¿É¼Ç µÚ¿¡ Àû¾îÁØ ¼³¸íÀº cvs log ¸í·ÉÀ» ÅëÇØ È®ÀÎÇÒ¼ö ÀÖ´Ù. ´©°¡ ¾î¶²
        ÆÄÀÏ¿¡ ¾î¶² ºÎºÐÀ» ¿Ö Ãß°¡ÇÏ°í ¼öÁ¤Çß´ÂÁö ´Ù¸¥ »ç¶÷ÀÌ ¾Ë¼ö ÀÖ´Ù.
  >> cvs commit ¸í·ÉÀ» ³»¸®¸é ÇöÀç µð·ºÅ丮 ÀÌÇÏ·Î º¯°æµÈ ÆÄÀÏÀ» cvs ¸í·ÉÀÌ
        ã¾Æ¼­ vi È­¸éÀ¸·Î º¸¿©ÁØ´Ù. :wq! ¸í·ÉÀ¸·Î ÀúÀåÇϸé cvs ¼­¹ö¿¡ ¹Ý¿µµÊ.

 

¢Â  ÆÄÀÏ°ú µð·ºÅ丮 Ãß°¡ ¹× »èÁ¦
  # cvs add newfile.c ¼öÁ¤ÈÄ
  # cvs commit

  >> À§¿¡¼­ add ¸í·ÉÀ» ³»¸®´Â °ÍÀÌ ½ÇÁ¦·Î ÀúÀå¼Ò µð·ºÅ丮¿¡ Àû¿ëµÇ´Â°ÍÀÌ
        ¾Æ´Ï¶ó CVS/Entries ÆÄÀÏ¿¡ newfile.c ÆÄÀÏÀÌ Ãß°¡µÇ¾ú´Ù´Â Ç¥½Ã¸¸ ÇÑ´Ù.
        ½ÇÁ¦ CVS ¼­¹ö¿¡ ¹Ý¿µÇϱâ À§Çؼ­´Â ¹Ýµå½Ã cvs commit ¸í·ÉÀ» ³»·Á¾ß ¹Ý¿µ.
  >> µð·ºÅ丮 Ãß°¡ ¹æ¹ýµµ °°´Ù. ( # cvs add [µð·ºÅ丮¸í] )
        ±×·¯³ª cvs ¼­¹ö¿¡ ¹Ý¿µÇϱâ À§Çؼ­´Â ÀÏÀÏÀÌ update ÇØÁà¾ß ÇÑ´Ù.
        ¹ø°Å·Î¿î ¹®Á¦¸¦ ÇØ°áÇϱâ À§Çؼ­ ½© ½ºÅ©¸³Æ®¸¦ ÀÛ¼ºÇØ »ç¿ëÇÑ´Ù.

 

¢Â  ÆÄÀÏ ÀÌÀü ¹öÁ¯À¸·Î µ¹¸®±â
  # cvs status main.c            ÇöÀç ¹öÁ¯ ÆľÇÇϱâ
  # cvs up -r 1.12 -p main.c > main.c
    >> cvs up -r [µÇµ¹¸±¹öÁ¯] -p [ÆÄÀϸí] > [ÆÄÀϸí]

 

¢Â cvs help »ç¿ë

 - cvs command -- help

ex) cvs update[ui] -- help

Usage: cvs update [-APCdflRp] [-k kopt] [-r rev] [-D date] [-j rev]
    [-I ign] [-W spec] [files...]
        -A      Reset any sticky tags/date/kopts.
        -P      Prune empty directories.
        -C      Overwrite locally modified files with clean repository copies.
        -d      Build directories, like checkout does.
        -f      Force a head revision match if tag/date not found.
        -l      Local directory only, no recursion.
        -R      Process directories recursively.

 

CVS commands are:

add Add a new file/directory to the repository
admin Administration front end for rcs
annotate Show last revision where each line was modified
chacl Change the Access Control List for a directory
checkout Checkout sources for editing
chown Change the owner of a directory
commit Check files into the repository
diff Show differences between revisions
edit Get ready to edit a watched file
editors See who is editing a watched file
export Export sources from CVS, similar to checkout
history Show repository access history
import Import sources into CVS, using vendor branches
init Create a CVS repository if it doesn't exist
info Display information about supported protocols
log Print out history information for files
login Prompt for password for authenticating server
logout Removes entry in .cvspass for remote repository
ls List files in the repository
lsacl List the directories Access Control List
passwd Set the user's password (Admin: Administer users)
authserver Authentication server mode
rannotate Show last revision where each line of module was modified
rdiff Create 'patch' format diffs between releases
release Indicate that a Module is no longer in use
remove Remove an entry from the repository
rename Rename a file or directory
rchacl Change the Access Control List for a directory
rchown Change the owner of a directory
rlsacl List the directories Access Control List
rlog Print out history information for a module
rtag Add a symbolic tag to a module
server Server mode
status Display status information on checked out files
tag Add a symbolic tag to checked out version of files
unedit Undo an edit command
update Bring work tree in sync with repository
version Show current CVS version(s)
watch Set watches
watchers See who is watching a file
xdiff Show differences between revisions using an external diff program

 

from http://blog.naver.com/ecupid77/80025825548

from http://fnwinter.egloos.com/tb/1172253

 

 

2007-06-11 13:05:15
211.189.124.***

 

ÁÁÀº»ý°¢ ^^

µûºÀ Á¶¶Ç Á¾ÇÕ 0 (0¸í)
µ¡±Û 0°³ | ÅÂ±× 1°³ | °ü·Ã±Ûº¸±â
ű×ÀÔ·Â
½±Ç¥(,)±¸ºÐÀ¸·Î Çѹø¿¡ ¿©·¯ ű׸¦ ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù
CVS (1)
À̸§ ºñ¹Ð¹øÈ£