~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/en/tutorials/tutorial.txt

  • Committer: Martin Pool
  • Date: 2009-11-26 01:42:06 UTC
  • mfrom: (4827 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4828.
  • Revision ID: mbp@sourcefrog.net-20091126014206-qvf8jfpwpro558r4
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
403
403
    % bzr commit -m "Add ignore patterns"
404
404
 
405
405
 
 
406
bzr ignore
 
407
----------
 
408
 
 
409
As an alternative to editing the ``.bzrignore`` file, you can use the 
 
410
``bzr ignore`` command. The ``bzr ignore`` command takes filenames and/or
 
411
patterns as arguments and then adds them to the ``.bzrignore`` file. If a
 
412
``.bzrignore`` file does not exist the ``bzr ignore`` command will 
 
413
automatically create one for you, and implicitly add it to be versioned::
 
414
 
 
415
    % bzr ignore tags
 
416
    % bzr status
 
417
    added:
 
418
      .bzrignore
 
419
 
 
420
Just like when editing the ``.bzrignore`` file on your own, you should
 
421
commit the automatically created ``.bzrignore`` file::
 
422
 
 
423
    % bzr commit -m "Added tags to ignore file"
 
424
 
 
425
 
406
426
Global ignores
407
427
--------------
408
428