Thread (7 messages) flat view 7 messages, 3 authors, 2016-06-15

Re: How to create a branch without any links to the others branches

From: Nguyen Thai Ngoc Duy <hidden>
Date: 2016-06-15 22:45:15

On 8/29/08, Francis Moreau [off-list ref] wrote:
On Fri, Aug 29, 2008 at 11:27 AM, Alex Riesen [off-list ref] wrote:
 >
 > $ rm .git/HEAD
 > $ echo ref: refs/heads/NEW-BRANCH-NAME > .git/HEAD
 > $ git commit
 >


well, it looks pretty git internal hack thing to me.
There is an old thread that uses "git symbolic-ref" or something
instead of "echo...", it would look less hacky. Or you could create a
new repository, make a new branch there, then pull that branch to your
repository.
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help