1 |
On 05 Oct 2015 22:46, Anthony G. Basile wrote: |
2 |
> On 10/5/15 10:36 PM, Mike Frysinger wrote: |
3 |
> > On 05 Oct 2015 22:25, Anthony G. Basile wrote: |
4 |
> >> Okay time to do some cleanup. I want to nuke the catalyst_2 and |
5 |
> >> catalyst_3 branches. dol-sen is going to take care of pending and 3.0. |
6 |
> >> I have no idea what write-on-master and tar-volume-label are so my |
7 |
> >> feeling is to nuke those too unless someone speaks up and said, wait NO! |
8 |
> > rather than delete branches (and thus history), how about we move them to |
9 |
> > a "old/" or "dead/" namespace ? then it'd be: |
10 |
> > refs/heads/ |
11 |
> > |-- 2.x |
12 |
> > |-- 3.0 |
13 |
> > |-- master |
14 |
> > `-- old |
15 |
> > |-- catalyst_2 |
16 |
> > |-- catalyst_3 |
17 |
> > |-- rewrite-on-master |
18 |
> > `-- tar-volume-label |
19 |
> |
20 |
> yeah even better, except i'm not sure how to do nested branches like |
21 |
> that. i'll google it. |
22 |
|
23 |
that part is simple :). there's nothing special with refs. |
24 |
|
25 |
create a copy first: |
26 |
$ git push origin -n remotes/origin/catalyst_2:refs/heads/old/catalyst_2 |
27 |
To git+ssh://git@××××××××××.org/proj/catalyst.git |
28 |
* [new branch] origin/catalyst_2 -> old/catalyst_2 |
29 |
|
30 |
then delete the old one: |
31 |
$ git push origin -n :refs/heads/catalyst_2 |
32 |
To git+ssh://git@××××××××××.org/proj/catalyst.git |
33 |
- [deleted] catalyst_2 |
34 |
-mike |