Thread (16 messages) flat view 16 messages, 5 authors, 2016-06-15

Re: git branch --switch?

From: Lars Hjemli <hidden>
Date: 2016-06-15 22:43:05

On 4/17/07, Rene Herman [off-list ref] wrote:
git clone -l -s -n <a local linux repo> local
git checkout -b v20 v2.6.20
git branch a
git branch b
git branch c

Step 1, 3, 4 and 5 of this are nearly instantaneous but 2 isn't
I might have misunderstood your goal, but have you tried

 git clone -l -s -n <a local linux repo> local
 git branch a v2.6.20
 git branch b a
 git branch c a

Now a, b and c all point at v2.6.20, while HEAD points as master.

--
larsh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help