cuiyi's blog(崔毅 crazycy)

          記錄點滴 鑒往事之得失 以資于發展
          數據加載中……

          CVS(Eclipse)的addto cvs.ignore在已經有版本控制的工程下的使用

          工程已經在版本控制下了,出于疏忽,忘記了對工程中的某些目錄,比如web-inf 和 classes目錄忽略提交;

          正常方式是在share project時使用addto cvs.ignore忽略之;


          為后來彌補所累,在Eclipse幫助手冊CVS部分有這樣的話:
          Tip:?Once?a?resource?is?under?version?control,?it?cannot?easily?be?subsequently?ignored.?This?is?why
          adding?to?version?control?is?an?explicit?operation?performed?by?you?the?user.

          看來困難了,嘿嘿,Eclipse幫助手冊CVS部分還有這樣的話:
          When?committing?resources,?often?there?are?resources?that?you?do?not?want?to?add?to?version?control.
          One?way?you?can?
          do?this?is?by using?the?CVS?"ignore"?facility,
          which?reads?the?contents?of?the?file?.cvsignore?to?determine?what?to?ignore.

          The?.cvsignore?file?can?be?added?to?any?directory?of?a?project.
          Many?existing?CVS?projects?already?contain?several?of?these?files.
          This?text?file?consists?of?a?list?of?files,?directories,?or?patterns.

          For?example,?to?add?a?.cvsignore?file?to?ignore?the?entire?bin?directory?of?an?existing?project:

          ???
          1.?In?one?of?the?navigation?views,?select?a?project?that?contains?a?/bin?directory.
          ????? The?bin?directory?will?commonly?contain?the projects?build?output.
          ????? These?are?files?that?are?generated?from?the?project
          's?source?files and?are?usually?not?version-controlled.
          ???2.?From?the?pop-up menu for the?project,?select New>File.?
          ???
          3
          .?Type?.cvsignore?as?the?file?name,?then?press?Finish.
          ????? The?file?will?be?created?in?your?project
          's?root?directory.
          ????? You?should?see?it in?one?of?the?navigation?views.

          ???4.?Enter?bin?in?the?.cvsignore?file?and?save?it.
          ???
          5.?Select?the?project.?
          ????? From?the?context?menu,?select?the?Team?
          >?Synchronize?with?Repository?menu?item.?
          ????? Notice?that?the?bin?directory does?not?show?as?an?outgoing?change.?It?is?ignored.

          The?cvsignore?file?consists?of?a?list?of?files,?directories,?or?patterns.
          In?a?similar?way?to?the?global?ignore?facility, the wildcards?
          * and???may?be?present?in?any?entry?in?the?.cvsignore?file.
          Any?file?or?sub
          -directory?in?the?current?directory that matches?any?one?of?the?patterns?will?be?ignored.

          Tip:?In?the?Team?menu?and?in?the?Synchronize?view?resource?context?menu
          there?is?a?menu?item?(addto?.cvsignore)
          for?adding?a?file?pattern?to?the?appropriate?.cvsignore?file.
          This?menu?item?is?enabled for
          resources that?are?not?yet?under?CVS?version?control.


          搞定,呵呵.
          看到綠色部分,知道為什么了吧?看到紅色部分,知道該怎么做了吧?

          posted on 2006-07-28 12:18 crazycy 閱讀(2494) 評論(3)  編輯  收藏 所屬分類: JavaEE技術

          評論

          # re: CVS(Eclipse)的addto cvs.ignore在已經有版本控制的工程下的使用  回復  更多評論   

          實際上JBuilder的做法一樣,可以看看工程目錄下的.cvsignore文件,按照這樣的做法手動添加了在Eclipse里只能。
          2006-07-28 14:32 | zilchist

          # re: CVS(Eclipse)的addto cvs.ignore在已經有版本控制的工程下的使用  回復  更多評論   

          我手工添加了,但是怎么還是撤銷不了版本控制呢?
          2007-09-17 22:04 | jlupaopao

          # re: CVS(Eclipse)的addto cvs.ignore在已經有版本控制的工程下的使用  回復  更多評論   

          @jlupaopao
          哥們,最近我也發現了,我在重新搗鼓,一有進展就與你share
          2007-10-02 15:56 | crazycy
          主站蜘蛛池模板: 卢氏县| 称多县| 措勤县| 黎川县| 星子县| 定南县| 广汉市| 汽车| 吉林省| 富川| 栖霞市| 通江县| 河北省| 平泉县| 太谷县| 磐石市| 清徐县| 阜城县| 舟曲县| 新津县| 博白县| 舒城县| 涞水县| 乌兰县| 莆田市| 卓资县| 揭阳市| 遂昌县| 白银市| 东莞市| 原平市| 阳信县| 讷河市| 陆川县| 萨迦县| 抚宁县| 铁岭县| 连城县| 宜城市| 溆浦县| 屯昌县|