equal
deleted
inserted
replaced
1 -*- mode: outline -*- |
1 -*- mode: outline -*- |
2 |
2 |
3 * Cloning repo. |
3 * Import existing/init new project. |
|
4 |
|
5 $ mkdir proj |
|
6 $ cd proj |
|
7 $ touch README Makefile main.c |
|
8 $ bzr init |
|
9 Created a standalone tree (format: 2a) |
|
10 $ bzr add . |
|
11 adding Makefile |
|
12 adding README |
|
13 adding main.c |
|
14 $ bzr ci -m 'Init proj.' |
|
15 Committing to: /cygdrive/e/home/devel/tmp/vcs-bzr/proj/ |
|
16 added Makefile |
|
17 added README |
|
18 added main.c |
|
19 Committed revision 1. |
|
20 |
|
21 * Cloning/branching repo. |
|
22 |
|
23 'branch'/'get'/'clone' are aliases for 'branch' command: |
|
24 |
|
25 $ bzr clone proj/ proj-clone |
|
26 Branched 1 revision(s). |
4 |
27 |
5 * Updating repo. |
28 * Updating repo. |
6 |
29 |
7 * Incoming changes. |
30 * Incoming changes. |
8 |
31 |
9 $ bzr missing bzr://bzr.example.com/proj/trunk |
32 $ bzr missing bzr://bzr.example.com/proj/trunk |
10 |
33 |
|
34 * Working copy status. |
|
35 |
|
36 'status'/'st'/'stat' are aliases for 'status' command: |
|
37 |
|
38 $ bzr rm README |
|
39 deleted README |
|
40 $ bzr st |
|
41 removed: |
|
42 README |
|
43 |
|
44 * Adding files to repo. |
|
45 |
|
46 $ touch hello.c |
|
47 $ bzr add hello.c |
|
48 adding hello.c |
|
49 |
|
50 * Deleting files from repo. |
|
51 |
|
52 'remove'/'rm'/'del' are aliases for 'remove' command: |
|
53 |
|
54 $ bzr rm README |
|
55 deleted README |
|
56 |
|
57 * Undo local changes. |
|
58 |
|
59 $ bzr rm README |
|
60 deleted README |
|
61 $ bzr revert README |
|
62 +N README |
|
63 |
|
64 * Undo last commit. |
|
65 |
|
66 $ bzr add hello.c |
|
67 adding hello.c |
|
68 |
|
69 $ bzr ci -m bug |
|
70 Committing to: /cygdrive/e/home/devel/tmp/vcs-bzr/proj-clone/ |
|
71 added hello.c |
|
72 Committed revision 2. |
|
73 |
|
74 $ bzr uncommit |
|
75 Are you sure? [y/n]: y |
|
76 2 Oleksandr Gavenko 2011-01-23 |
|
77 bug |
|
78 |
|
79 The above revision(s) will be removed. |
|
80 You can restore the old tip by running: |
|
81 bzr pull . -r revid:gavenkoa@gmail.com-20110123213425-f2ca8umip5iw73is |
|
82 |
|
83 $ bzr st |
|
84 added: |
|
85 hello.c |
|
86 |
|
87 * Info about bzr repo. |
|
88 |
|
89 $ bzr info |
|
90 Standalone tree (format: 2a) |
|
91 Location: |
|
92 branch root: . |
|
93 |
|
94 Related branches: |
|
95 parent branch: /cygdrive/e/home/devel/tmp/vcs-bzr/proj |
|
96 |