~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/en/mini-tutorial/index.txt

  • Committer: Patch Queue Manager
  • Date: 2011-10-14 16:54:26 UTC
  • mfrom: (6216.1.1 remove-this-file)
  • Revision ID: pqm@pqm.ubuntu.com-20111014165426-tjix4e6idryf1r2z
(jelmer) Remove an accidentally committed .THIS file. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
======================
56
56
 
57
57
Let's suppose we want to store a new project under Bazaar.  First, we'll
58
 
make a directory to hold all our work related to this project.  We'll make
59
 
a *repository directory*, which means that the 
 
58
make a *repository directory* to hold all our work related to this
 
59
project, where developers can create branches to test development of
 
60
specific features or, more generally, modifications to the working file
 
61
set.  
 
62
 
 
63
After creating the repository, change to that directory, and create the
 
64
project's main trunk branch.
60
65
 
61
66
::
62
67
 
66
71
  cd trunk
67
72
 
68
73
 
 
74
Adding files
 
75
============
 
76
 
 
77
Now that we have the trunk, we need to move to that directory and
 
78
create some example files for the first version of that project.  Create
 
79
a file ``test1.txt`` using a text editor (like emacs, nano, or notepad),
 
80
and save it.  Then we'll "add" the file, which tells bzr we want it to
 
81
track changes::
 
82
 
 
83
  bzr add test1.txt
 
84
 
 
85
and then commit, which saves a snapshot of all versioned files::
 
86
 
 
87
  bzr commit -m "Added first line of text"
 
88
 
 
89
 
69
90
Making changes to your files
70
91
============================
71
92
 
 
93
 
72
94
Let's change a file and commit that change to your branch.
73
95
 
74
96
Edit ``test1.txt`` in your favourite editor, then check what have you done::