Hex Artifact Content
Not logged in

Artifact b96ff20fcfe6d9f7ba72d9d546f95fae5dfa5969:

File www/cmd_rm.wiki part of check-in [aef81bf344] - cli docs by kejoki on 2008-12-21 16:36:43.

0000: 3c 68 32 3e 64 65 6c 20 7c 20 72 6d 3c 2f 68 32  <h2>del | rm</h2
0010: 3e 0a 0a 54 68 65 20 3c 63 6f 64 65 3e 64 65 6c  >..The <code>del
0020: 3c 2f 63 6f 64 65 3e 20 28 61 6c 69 61 73 20 3c  </code> (alias <
0030: 63 6f 64 65 3e 72 6d 3c 2f 63 6f 64 65 3e 29 20  code>rm</code>) 
0040: 63 6f 6d 6d 61 6e 64 20 74 61 6b 65 73 20 61 20  command takes a 
0050: 22 66 69 6c 65 22 0a 3c 65 6d 3e 6f 75 74 3c 2f  "file".<em>out</
0060: 65 6d 3e 20 6f 66 20 61 20 70 72 6f 6a 65 63 74  em> of a project
0070: 2e 0a 0a 49 74 20 64 6f 65 73 20 3c 75 3e 6e 6f  ...It does <u>no
0080: 74 3c 2f 75 3e 20 64 65 6c 65 74 65 20 74 68 65  t</u> delete the
0090: 20 66 69 6c 65 20 66 72 6f 6d 20 74 68 65 20 72   file from the r
00a0: 65 70 6f 73 69 74 6f 72 79 2c 20 69 74 20 64 6f  epository, it do
00b0: 65 73 0a 3c 75 3e 6e 6f 74 3c 2f 75 3e 20 72 65  es.<u>not</u> re
00c0: 6d 6f 76 65 20 74 68 65 20 66 69 6c 65 20 66 72  move the file fr
00d0: 6f 6d 20 74 68 65 20 66 69 6c 65 20 73 79 73 74  om the file syst
00e0: 65 6d 20 6f 6e 20 64 69 73 6b 2e 20 20 49 74 20  em on disk.  It 
00f0: 74 65 6c 6c 73 0a 3c 62 3e 66 6f 73 73 69 6c 3c  tells.<b>fossil<
0100: 2f 62 3e 20 74 68 61 74 20 74 68 65 20 66 69 6c  /b> that the fil
0110: 65 20 69 73 20 6e 6f 20 6c 6f 6e 67 65 72 20 61  e is no longer a
0120: 20 70 61 72 74 20 6f 66 20 74 68 65 20 70 72 6f   part of the pro
0130: 6a 65 63 74 20 66 6f 72 0a 77 68 69 63 68 20 3c  ject for.which <
0140: 62 3e 66 6f 73 73 69 6c 3c 2f 62 3e 20 69 73 20  b>fossil</b> is 
0150: 6d 61 69 6e 74 61 69 6e 69 6e 67 20 74 68 65 20  maintaining the 
0160: 73 6f 75 72 63 65 73 2e 0a 0a 46 6f 72 20 65 78  sources...For ex
0170: 61 6d 70 6c 65 2c 20 69 66 20 79 6f 75 20 68 61  ample, if you ha
0180: 76 65 20 61 20 6e 69 63 65 2c 20 63 6c 65 61 6e  ve a nice, clean
0190: 20 73 6f 75 72 63 65 20 74 72 65 65 20 61 6e 64   source tree and
01a0: 20 75 73 65 20 74 68 65 0a 5b 2e 2f 63 6d 64 5f   use the.[./cmd_
01b0: 65 78 74 72 61 2e 77 69 6b 69 20 7c 20 3c 63 6f  extra.wiki | <co
01c0: 64 65 3e 65 78 74 72 61 3c 2f 63 6f 64 65 3e 5d  de>extra</code>]
01d0: 20 63 6f 6d 6d 61 6e 64 20 6f 6e 20 69 74 2c 20   command on it, 
01e0: 79 6f 75 20 77 6f 6e 27 74 0a 67 65 74 20 61 6e  you won't.get an
01f0: 79 20 6f 75 74 70 75 74 2e 20 20 49 66 20 79 6f  y output.  If yo
0200: 75 20 74 68 65 6e 20 3c 63 6f 64 65 3e 72 6d 3c  u then <code>rm<
0210: 2f 63 6f 64 65 3e 20 73 6f 6d 65 20 66 69 6c 65  /code> some file
0220: 20 61 6e 64 20 63 6f 6d 6d 69 74 0a 74 68 65 20   and commit.the 
0230: 63 68 61 6e 67 65 2c 20 74 68 61 74 20 66 69 6c  change, that fil
0240: 65 20 77 69 6c 6c 20 62 65 20 6c 69 73 74 65 64  e will be listed
0250: 20 62 79 20 74 68 65 20 3c 63 6f 64 65 3e 65 78   by the <code>ex
0260: 74 72 61 3c 2f 63 6f 64 65 3e 0a 63 6f 6d 6d 61  tra</code>.comma
0270: 6e 64 2e 0a 0a 54 68 65 20 66 69 6c 65 20 69 73  nd...The file is
0280: 20 73 74 69 6c 6c 20 6f 6e 20 74 68 65 20 64 69   still on the di
0290: 73 6b 2c 20 61 6e 64 20 69 74 20 69 73 20 73 74  sk, and it is st
02a0: 69 6c 6c 20 69 6e 20 74 68 65 20 72 65 70 6f 73  ill in the repos
02b0: 69 74 6f 72 79 2e 0a 3c 73 74 72 6f 6e 67 3e 42  itory..<strong>B
02c0: 75 74 3c 2f 73 74 72 6f 6e 67 3e 20 74 68 65 20  ut</strong> the 
02d0: 66 69 6c 65 20 3c 65 6d 3e 69 73 20 6e 6f 74 20  file <em>is not 
02e0: 70 61 72 74 20 6f 66 20 74 68 65 20 70 72 6f 6a  part of the proj
02f0: 65 63 74 3c 2f 65 6d 3e 0a 61 6e 79 6d 6f 72 65  ect</em>.anymore
0300: 2e 20 20 46 75 72 74 68 65 72 20 63 68 61 6e 67  .  Further chang
0310: 65 73 20 74 6f 20 74 68 65 20 66 69 6c 65 20 77  es to the file w
0320: 69 6c 6c 20 6e 6f 74 20 62 65 20 63 68 65 63 6b  ill not be check
0330: 65 64 20 69 6e 20 75 6e 6c 65 73 73 0a 79 6f 75  ed in unless.you
0340: 20 5b 2e 2f 63 6d 64 5f 61 64 64 2e 77 69 6b 69   [./cmd_add.wiki
0350: 20 7c 20 3c 63 6f 64 65 3e 61 64 64 3c 2f 63 6f   | <code>add</co
0360: 64 65 3e 5d 20 74 68 65 20 66 69 6c 65 20 61 67  de>] the file ag
0370: 61 69 6e 2e 0a 0a 49 74 20 63 61 6e 20 69 6e 69  ain...It can ini
0380: 74 69 61 6c 6c 79 20 62 65 20 63 6f 6e 66 75 73  tially be confus
0390: 69 6e 67 20 74 6f 20 73 65 65 20 61 20 66 69 6c  ing to see a fil
03a0: 65 20 74 68 61 74 27 73 20 62 65 65 6e 20 22 64  e that's been "d
03b0: 65 6c 65 74 65 64 22 0a 73 74 69 6c 6c 20 73 68  eleted".still sh
03c0: 6f 77 69 6e 67 20 75 70 20 69 6e 20 74 68 65 20  owing up in the 
03d0: 66 69 6c 65 73 20 6c 69 73 74 20 69 6e 20 74 68  files list in th
03e0: 65 20 72 65 70 6f 73 69 74 6f 72 79 2c 20 62 75  e repository, bu
03f0: 74 20 72 65 6d 65 6d 62 65 72 0a 74 68 61 74 20  t remember.that 
0400: 74 68 65 20 66 69 6c 65 73 20 6c 69 73 74 20 63  the files list c
0410: 75 72 72 65 6e 74 6c 79 3c 61 20 68 72 65 66 3d  urrently<a href=
0420: 22 23 76 6e 6f 74 65 22 3e 3c 73 75 70 3e 2a 3c  "#vnote"><sup>*<
0430: 2f 73 75 70 3e 3c 2f 61 3e 20 73 68 6f 77 73 0a  /sup></a> shows.
0440: 61 6c 6c 20 6f 66 20 74 68 65 20 66 69 6c 65 73  all of the files
0450: 20 74 68 61 74 20 68 61 76 65 20 65 76 65 72 20   that have ever 
0460: 62 65 65 6e 20 69 6e 20 74 68 65 20 72 65 70 6f  been in the repo
0470: 73 69 74 6f 72 79 20 3c 65 6d 3e 62 65 63 61 75  sitory <em>becau
0480: 73 65 0a 3c 62 3e 66 6f 73 73 69 6c 3c 2f 62 3e  se.<b>fossil</b>
0490: 20 69 73 20 61 20 73 6f 75 72 63 65 20 63 6f 6e   is a source con
04a0: 74 72 6f 6c 20 73 79 73 74 65 6d 20 61 6e 64 20  trol system and 
04b0: 74 68 65 72 65 66 6f 72 65 20 6b 65 65 70 73 20  therefore keeps 
04c0: 61 20 72 65 63 6f 72 64 0a 6f 66 20 74 68 65 20  a record.of the 
04d0: 68 69 73 74 6f 72 79 20 6f 66 20 61 20 70 72 6f  history of a pro
04e0: 6a 65 63 74 2e 3c 2f 65 6d 3e 0a 0a 54 6f 20 67  ject.</em>..To g
04f0: 65 74 20 61 20 6c 69 73 74 20 6f 66 20 74 68 65  et a list of the
0500: 20 66 69 6c 65 73 20 3c 65 6d 3e 6f 6e 6c 79 20   files <em>only 
0510: 69 6e 20 74 68 65 20 63 75 72 72 65 6e 74 20 76  in the current v
0520: 65 72 73 69 6f 6e 3c 2f 65 6d 3e 20 6f 66 20 74  ersion</em> of t
0530: 68 65 0a 70 72 6f 6a 65 63 74 2c 20 75 73 65 20  he.project, use 
0540: 74 68 65 20 5b 2e 2f 63 6d 64 5f 6c 73 2e 77 69  the [./cmd_ls.wi
0550: 6b 69 20 7c 20 3c 63 6f 64 65 3e 6c 73 3c 2f 63  ki | <code>ls</c
0560: 6f 64 65 3e 5d 20 63 6f 6d 6d 61 6e 64 2e 0a 0a  ode>] command...
0570: 54 68 65 20 3c 63 6f 64 65 3e 64 65 6c 3c 2f 63  The <code>del</c
0580: 6f 64 65 3e 20 63 6f 6d 6d 61 6e 64 20 69 73 20  ode> command is 
0590: 74 68 65 20 6c 6f 67 69 63 61 6c 20 6f 70 70 6f  the logical oppo
05a0: 73 69 74 65 20 6f 66 20 74 68 65 0a 5b 2e 2f 63  site of the.[./c
05b0: 6d 64 5f 61 64 64 2e 77 69 6b 69 20 7c 20 3c 63  md_add.wiki | <c
05c0: 6f 64 65 3e 61 64 64 3c 2f 63 6f 64 65 3e 5d 20  ode>add</code>] 
05d0: 63 6f 6d 6d 61 6e 64 2c 20 69 6e 20 69 74 73 20  command, in its 
05e0: 73 69 6e 67 6c 65 2d 66 69 6c 65 2d 61 64 64 0a  single-file-add.
05f0: 66 6f 72 6d 2e 0a 0a 3c 66 6f 6e 74 20 73 69 7a  form...<font siz
0600: 65 3d 22 2d 31 22 3e 3c 61 20 6e 61 6d 65 3d 22  e="-1"><a name="
0610: 76 6e 6f 74 65 22 3e 3c 73 75 70 3e 2a 3c 2f 73  vnote"><sup>*</s
0620: 75 70 3e 3c 2f 61 3e 76 65 72 73 69 6f 6e 20 37  up></a>version 7
0630: 63 32 38 31 62 36 32 39 61 20 6f 6e 20 32 30 30  c281b629a on 200
0640: 38 31 32 32 30 3c 2f 66 6f 6e 74 3e 0a 0a 53 65  81220</font>..Se
0650: 65 20 61 6c 73 6f 3a 20 5b 2e 2f 63 6d 64 5f 61  e also: [./cmd_a
0660: 64 64 2e 77 69 6b 69 20 7c 20 66 6f 73 73 69 6c  dd.wiki | fossil
0670: 20 61 64 64 5d 2c 0a 5b 2e 2f 63 6d 64 5f 6c 73   add],.[./cmd_ls
0680: 2e 77 69 6b 69 20 7c 20 66 6f 73 73 69 6c 20 6c  .wiki | fossil l
0690: 73 5d 2c 0a 5b 2e 2f 72 65 66 65 72 65 6e 63 65  s],.[./reference
06a0: 2e 77 69 6b 69 20 7c 20 52 65 66 65 72 65 6e 63  .wiki | Referenc
06b0: 65 5d 0a                                         e].