~gustav-hartvigsson/useful/trunk-1

« back to all changes in this revision

Viewing changes to README

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-13 19:54:22 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210113195422-pmykikwywd3mvqca
Fixed readme.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Useful Scripts.
2
2
 
 
3
This provides a set of -- what I find -- useful scripts. If you find any of them
 
4
useful, feel free to use them to your hearts content
 
5
 
 
6
THESE SCRIPTS ARE PROVIDED WITHOUT ANY WARRANTY. USE AT YOUR OWN RISK.
 
7
 
 
8
 
 
9
--------------------------------------------------------------------------------
 
10
 
3
11
Get main repository:
4
12
 
5
13
$ mkdir useful
11
19
To you can do a merge request on both GitHub and Launchpad, but I prefer it
12
20
if you use launchpad.
13
21
 
 
22
$ cd path/to/useful
 
23
$ brz branch trunk some_branch
 
24
$ cd some_branch
 
25
$ # do some hacking
 
26
$ brz push lp:~username/useful/some_branch
 
27
 
14
28
To push a branch to github, you have to set up git to work with github, then
15
29
you can do the following:
16
30
 
17
 
$ cd path/to/useful/my_branch
 
31
$ cd path/to/useful/some_branch
18
32
$ brz push --lossy github:username/useful,branch=my_branch
19
33
 
20
34
To pull from GitHub (into a bazaar tree):
22
36
$ cd path/to/useful
23
37
$ brz branch trunk some_branch
24
38
$ cd some_branch
25
 
$ brz pull https://github.com/username/useful,branch=some_branch
 
39
$ brz pull github:username/useful,branch=some_branch
26
40
 
27
41
You can also use brz transparently with git, this will pull the repo as git:
28
42
 
29
43
$ cd path/to/useful
30
 
$ brz branch https://github.com/username/useful,branch=some_branch some_branch
 
44
$ brz branch github:username/useful.git some_branch
31
45
 
32
46
You can then merge from and to the bazaar tree.
33
47
 
34
 
This provides a set of -- what I find -- useful scripts. If you find any of them
35
 
useful, feel free to use them to your hearts content.
36
 
 
37
 
THESE SCRIPTS ARE PROVIDED WITHOUT ANY WARRANTY. USE AT YOUR OWN RISK.
 
48
$ cd some_bzr_branch
 
49
$ brz diff ../some_git_branch.git
 
50
 
 
51
or
 
52
 
 
53
$ cd some_git_branch.git
 
54
$ brz diff ../some_bzr_branch
 
55